On Fri, Oct 26, 2018 at 10:02:19AM -0600, Jan Beulich wrote:
> >>> On 19.10.18 at 16:28, wrote:
> > @@ -1337,8 +1339,15 @@ static int fixup_page_fault(unsigned long addr,
> > struct cpu_user_regs *regs)
> > {
> > if ( !(regs->error_code & (PFEC_user_mode | PFEC_reserved_bit)) &&
>
>>> On 19.10.18 at 16:28, wrote:
> @@ -1337,8 +1339,15 @@ static int fixup_page_fault(unsigned long addr, struct
> cpu_user_regs *regs)
> {
> if ( !(regs->error_code & (PFEC_user_mode | PFEC_reserved_bit)) &&
> (addr >= GDT_LDT_VIRT_START) && (addr < GDT_LDT_VIRT_END)
Provide a stub for pv_inject_event, put code that accesses PV fields
and GDT / LDT fault handling code under CONFIG_PV.
Signed-off-by: Wei Liu
---
v2: reduce the amount of ifdefs
---
xen/arch/x86/traps.c | 23 +++
xen/include/asm-x86/domain.h | 7 +++
2 files