The finance and energy ministers of the G7 group affirmed their readiness to take "all necessary measures" to ensure the stability of the energy market, as part of their efforts to address the economic repercussions of the war in the Middle East.