]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/vm_event: put vm_event_fill_regs under CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Fri, 17 Aug 2018 10:19:42 +0000 (11:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 10:01:03 +0000 (11:01 +0100)
Ideally the HVM specific part of VM event should be moved into hvm/ at
some point, but this will do for now.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
xen/arch/x86/vm_event.c

index f91aadebeac10d7c050e83528377b9e57cf6f8b6..a2e470a65b1958c4ac8aa6ff686b63e0572b78c7 100644 (file)
@@ -124,6 +124,7 @@ void vm_event_monitor_next_interrupt(struct vcpu *v)
 
 void vm_event_fill_regs(vm_event_request_t *req)
 {
+#ifdef CONFIG_HVM
     const struct cpu_user_regs *regs = guest_cpu_user_regs();
     struct segment_register seg;
     struct hvm_hw_cpu ctxt;
@@ -177,6 +178,7 @@ void vm_event_fill_regs(vm_event_request_t *req)
 
     hvm_get_segment_register(curr, x86_seg_cs, &seg);
     req->data.regs.x86.cs_arbytes = seg.attr;
+#endif
 }
 
 void vm_event_emulate_check(struct vcpu *v, vm_event_response_t *rsp)