Iran and the U.S. discussed Iraq 's security situation in May , during the highest-level talks between the two countries in nearly 30 years .