* [PATCH 1/2] Consolidate XX_VECTOR defines
@ 2008-07-13 11:40 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2008-07-13 11:40 UTC (permalink / raw)
To: kvm-devel; +Cc: Avi Kivity, Mohammed Gamal
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
---
arch/x86/kvm/svm.c | 4 ----
arch/x86/kvm/vmx.c | 2 +-
include/asm-x86/kvm_host.h | 1 +
3 files changed, 2 insertions(+), 5 deletions(-)
Index: b/arch/x86/kvm/svm.c
===================================================================
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -36,10 +36,6 @@ MODULE_LICENSE("GPL");
#define IOPM_ALLOC_ORDER 2
#define MSRPM_ALLOC_ORDER 1
-#define DB_VECTOR 1
-#define UD_VECTOR 6
-#define GP_VECTOR 13
-
#define DR7_GD_MASK (1 << 13)
#define DR6_BD_MASK (1 << 13)
Index: b/include/asm-x86/kvm_host.h
===================================================================
--- a/include/asm-x86/kvm_host.h
+++ b/include/asm-x86/kvm_host.h
@@ -56,6 +56,7 @@
#define KVM_PAGES_PER_HPAGE (KVM_HPAGE_SIZE / PAGE_SIZE)
#define DE_VECTOR 0
+#define DB_VECTOR 1
#define UD_VECTOR 6
#define NM_VECTOR 7
#define DF_VECTOR 8
Index: b/arch/x86/kvm/vmx.c
===================================================================
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -470,7 +470,7 @@ static void update_exception_bitmap(stru
if (!vcpu->fpu_active)
eb |= 1u << NM_VECTOR;
if (vcpu->guest_debug.enabled)
- eb |= 1u << 1;
+ eb |= 1u << DB_VECTOR;
if (vcpu->arch.rmode.active)
eb = ~0;
if (vm_need_ept())
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-13 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-13 11:40 [PATCH 1/2] Consolidate XX_VECTOR defines Jan Kiszka
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.