xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] hvm/vmx: save dr7 during vmx_vmcs_save
@ 2016-02-12  0:22 Tamas K Lengyel
  2016-02-12  0:22 ` [PATCH v2 2/2] vm_event: consolidate hvm_event_fill_regs and p2m_vm_event_fill_regs Tamas K Lengyel
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Tamas K Lengyel @ 2016-02-12  0:22 UTC (permalink / raw)
  To: xen-devel
  Cc: Kevin Tian, Keir Fraser, Jun Nakajima, Andrew Cooper, Jan Beulich,
	Tamas K Lengyel

Sending the dr7 register during vm_events is useful for various applications,
but the current way the register value is gathered is incorrent. In this patch
we extend vmx_vmcs_save so that we get the correct value.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Tamas K Lengyel <tlengyel@novetta.com>
Cc: Jun Nakajima <jun.nakajima@intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Keir Fraser <keir@xen.org>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
---
 xen/arch/x86/hvm/vmx/vmx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index b9f340c..ae05794 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -490,6 +490,7 @@ static void vmx_vmcs_save(struct vcpu *v, struct hvm_hw_cpu *c)
     __vmread(GUEST_SYSENTER_CS, &c->sysenter_cs);
     __vmread(GUEST_SYSENTER_ESP, &c->sysenter_esp);
     __vmread(GUEST_SYSENTER_EIP, &c->sysenter_eip);
+    __vmread(GUEST_DR7, &c->dr7);
 
     c->pending_event = 0;
     c->error_code = 0;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2016-02-16  9:17 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-12  0:22 [PATCH v2 1/2] hvm/vmx: save dr7 during vmx_vmcs_save Tamas K Lengyel
2016-02-12  0:22 ` [PATCH v2 2/2] vm_event: consolidate hvm_event_fill_regs and p2m_vm_event_fill_regs Tamas K Lengyel
2016-02-12  6:57   ` Razvan Cojocaru
2016-02-12  9:07   ` Jan Beulich
2016-02-12  9:57   ` Jan Beulich
2016-02-12 10:19     ` Razvan Cojocaru
2016-02-12 10:41       ` Jan Beulich
2016-02-12 12:50         ` Lengyel, Tamas
2016-02-12 14:57           ` Jan Beulich
2016-02-15 16:19             ` Lengyel, Tamas
2016-02-15 14:17   ` George Dunlap
2016-02-12  6:56 ` [PATCH v2 1/2] hvm/vmx: save dr7 during vmx_vmcs_save Razvan Cojocaru
2016-02-12  9:12 ` Jan Beulich
2016-02-12 12:57   ` Lengyel, Tamas
2016-02-12 15:00     ` Jan Beulich
2016-02-15 16:27       ` Lengyel, Tamas
2016-02-15 16:48         ` Jan Beulich
2016-02-15 16:55           ` Lengyel, Tamas
2016-02-15 17:06             ` Jan Beulich
2016-02-15 17:17               ` Lengyel, Tamas
2016-02-16  9:17                 ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).