Revert "x86/hvm: Perform a user instruction fetch for a FEP in userspace"

This reverts commit c3b06b0a75,
which doesn't build and would, in its current form, use
uninitialized data if it did.
This commit is contained in:
Jan Beulich committed 2016-09-12 17:48:25 +02:00
1 parent 6b5bb502a9
commit 3cffa34537
2 files changed
+2 -6

No files matched your search

+1 -3
View File
@@ -2131,12 +2131,10 @@ static void svm_vmexit_ud_intercept(struct cpu_user_regs *regs)
if ( opt_hvm_fep )
{
uint32_t walk = (ctxt.seg_reg[x86_seg_ss].attr.fields.dpl == 3)
? PFEC_user_mode : 0;
char sig[5]; /* ud2; .ascii "xen" */
if ( (hvm_fetch_from_guest_virt_nofault(
sig, regs->eip, sizeof(sig), walk) == HVMCOPY_okay) &&
sig, regs->eip, sizeof(sig), 0) == HVMCOPY_okay) &&
(memcmp(sig, "\xf\xbxen", sizeof(sig)) == 0) )
{
regs->eip += sizeof(sig);
+1 -3
View File
@@ -2763,12 +2763,10 @@ static void vmx_vmexit_ud_intercept(struct cpu_user_regs *regs)
if ( opt_hvm_fep )
{
uint32_t walk = (ctxt.seg_reg[x86_seg_ss].attr.fields.dpl == 3)
? PFEC_user_mode : 0;
char sig[5]; /* ud2; .ascii "xen" */
if ( (hvm_fetch_from_guest_virt_nofault(
sig, regs->eip, sizeof(sig), walk) == HVMCOPY_okay) &&
sig, regs->eip, sizeof(sig), 0) == HVMCOPY_okay) &&
(memcmp(sig, "\xf\xbxen", sizeof(sig)) == 0) )
{
regs->eip += sizeof(sig);
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.