From: Kyle Hale Date: Wed, 26 Mar 2014 05:35:31 +0000 (-0500) Subject: XEND instruction now correctly generates GPF when not in RTM mode X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2b335d52378f2df90738e450ceacca598e2178a;hp=f0b0012ea7e527abf517545e4280f19d6b6b5f1c;p=palacios.git XEND instruction now correctly generates GPF when not in RTM mode --- diff --git a/palacios/src/extensions/ext_trans_mem.c b/palacios/src/extensions/ext_trans_mem.c index 5849f04..7a4c838 100644 --- a/palacios/src/extensions/ext_trans_mem.c +++ b/palacios/src/extensions/ext_trans_mem.c @@ -1776,14 +1776,10 @@ tm_handle_xend (struct guest_info * core, /* XEND should raise a GPF when RTM mode is not on */ if (tm->TM_MODE != TM_ON) { TM_ERR(core, UD, "Encountered XEND while not in a transactional region\n"); - v3_free_staging_page(tm); - v3_clr_vtlb(core); - v3_clear_tm_lists(tm); - if (v3_raise_exception(core, GPF_EXCEPTION) == -1) { - TM_ERR(core, UD, "couldn't raise GPF\n"); - return -1; - } + + v3_raise_exception(core, GPF_EXCEPTION); return 0; + } /* Our transaction finished! */