All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] hvm/vmx: save dr7 during vmx_vmcs_save
@ 2016-02-15 19:04 Tamas K Lengyel
  2016-02-15 19:04 ` [PATCH v3 2/2] vm_event: consolidate hvm_event_fill_regs and p2m_vm_event_fill_regs Tamas K Lengyel
  2016-02-16  6:58 ` [PATCH v3 1/2] hvm/vmx: save dr7 during vmx_vmcs_save Tian, Kevin
  0 siblings, 2 replies; 11+ messages in thread
From: Tamas K Lengyel @ 2016-02-15 19:04 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] 11+ messages in thread

end of thread, other threads:[~2016-02-22 13:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 19:04 [PATCH v3 1/2] hvm/vmx: save dr7 during vmx_vmcs_save Tamas K Lengyel
2016-02-15 19:04 ` [PATCH v3 2/2] vm_event: consolidate hvm_event_fill_regs and p2m_vm_event_fill_regs Tamas K Lengyel
2016-02-16  6:58 ` [PATCH v3 1/2] hvm/vmx: save dr7 during vmx_vmcs_save Tian, Kevin
2016-02-16 10:47   ` Jan Beulich
2016-02-19 17:06     ` Lengyel, Tamas
2016-02-19 17:18       ` Andrew Cooper
2016-02-19 17:26         ` Lengyel, Tamas
2016-02-19 18:04           ` Lengyel, Tamas
2016-02-22  9:25           ` Razvan Cojocaru
2016-02-22 13:51             ` Lengyel, Tamas
2016-02-22 13:53               ` Razvan Cojocaru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.