x86/HVM: permit CLFLUSH{,OPT} on execute-only code segments

Both SDM and PM explicitly permit this.

Fixes: 52dba7bd0b ("x86emul: generalize wbinvd() hook")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Paul Durrant <paul@xen.org>
This commit is contained in:
Jan Beulich committed 2021-12-10 14:03:56 +01:00
1 parent c6cec7af28
commit df3e1a5efe
1 file changed
+3 -1
+3 -1
View File
@@ -2310,7 +2310,9 @@ static int hvmemul_cache_op(
ASSERT(!is_x86_system_segment(seg));
rc = hvmemul_virtual_to_linear(seg, offset, 0, NULL,
hvm_access_read, hvmemul_ctxt, &addr);
op != x86emul_clwb ? hvm_access_none
: hvm_access_read,
hvmemul_ctxt, &addr);
if ( rc != X86EMUL_OKAY )
break;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.