|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 5/6] x86/hvm: Forced Emulation Prefix for debug builds of Xen
On 09/23/2014 12:09 PM, Andrew Cooper wrote: Analysis of XSAs 105 and 106 show that is possible to force a race condition which causes any arbitrary instruction to be emulated. To aid testing, explicitly introduce the Forced Emulation Prefix for debug builds alone. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CC: Keir Fraser <keir@xxxxxxx> CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> CC: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx> CC: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@xxxxxxx> CC: Jun Nakajima <jun.nakajima@xxxxxxxxx> CC: Eddie Dong <eddie.dong@xxxxxxxxx> CC: Kevin Tian <kevin.tian@xxxxxxxxx> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> --- v2: (all suggested by Jan) * Use hvm_fetch_from_guest_virt_nofault() in preference to copy_from_guest() * Vastly reduce use of #ifndef NDEBUG --- docs/misc/xen-command-line.markdown | 11 +++++++++++ xen/arch/x86/hvm/hvm.c | 5 +++++ xen/arch/x86/hvm/svm/svm.c | 13 +++++++++++++ xen/arch/x86/hvm/vmx/vmx.c | 13 +++++++++++++ xen/include/asm-x86/hvm/hvm.h | 7 +++++++ 5 files changed, 49 insertions(+) diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown index af93e17..389701a 100644 --- a/docs/misc/xen-command-line.markdown +++ b/docs/misc/xen-command-line.markdown @@ -682,6 +682,17 @@ Bit 11 - MSR operation loggingRecognized in debug builds of the hypervisor only. +### hvm\_fep+> `= <boolean>` + +> Default: `false` + +Allow use of the Forced Emulation Prefix in HVM guests, to allow emulation of +arbitrary instructions. + +This option is intended for development purposes, and is only available in +debug builds of the hypervisor. + ### hvm\_port80 > `= <boolean>`diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |