mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
6b5bb502a9
commit
3cffa34537
2 files changed
+2
-6
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||