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

This reverts commit 95559492c9,
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:50:13 +02:00
1 parent 9edce7c42e
commit c18dfbb886
2 files changed
+2 -6

No files matched your search

+1 -3
View File
@@ -2128,12 +2128,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
@@ -2546,12 +2546,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.