Skip to contentSkip to conversation

Remove unused virtualization technology specific headers

PATCH In review Xenia Ragiadakou 2 participants 4 messages Jan 27, 2023

lore
Share & tools
lore
#0 lore raw

cover Remove unused virtualization technology specific headers

The patches remove forgotten and now unused virtualization technology specific headers from arch/x86/cpu/vpmu.c and arch/x86/hvm/emulate.c.

Xenia Ragiadakou (2):
x86/emulate: remove unused svm specific header x86/vpmu: remove unused svm and vmx specific headers

 xen/arch/x86/cpu/vpmu.c    | 4 ----
 xen/arch/x86/hvm/emulate.c | 1 -
 2 files changed, 5 deletions(-)
Signature · 1 line
2.37.2
#1 lore raw

PATCH 1/2 x86/emulate: remove unused svm specific header

Fixes 2191599bacb7 ("x86/emul: Simplfy emulation state setup")

---

I 'm not sure that a Fixes tag applies in this case. I 've added it mostly for reference.

 xen/arch/x86/hvm/emulate.c | 1 -
 1 file changed, 1 deletion(-)
xen/arch/x86/hvm/emulate.c +0 -1
index cb221f70e8..95364deb19 100644
@@ -24,7 +24,6 @@
 #include <asm/hvm/monitor.h>
 #include <asm/hvm/trace.h>
 #include <asm/hvm/support.h>
-#include <asm/hvm/svm/svm.h>
 #include <asm/iocap.h>
 #include <asm/vm_event.h>
 
Signature · 1 line
2.37.2
#2 lore raw

PATCH 2/2 x86/vpmu: remove unused svm and vmx specific headers

In reply to Xenia Ragiadakou
Fixes 8c20aca6751b ("x86/vPMU: invoke <vendor>_vpmu_initialise() through a hook as well")

---

I 'm not sure that a Fixes tag applies in this case. I 've added it mostly for reference.

 xen/arch/x86/cpu/vpmu.c | 4 ----
 1 file changed, 4 deletions(-)
xen/arch/x86/cpu/vpmu.c +0 -4
index 64cdbfc48c..33e2fca8cd 100644
@@ -31,10 +31,6 @@
 #include <asm/p2m.h>
 #include <asm/vpmu.h>
 #include <asm/hvm/support.h>
-#include <asm/hvm/vmx/vmx.h>
-#include <asm/hvm/vmx/vmcs.h>
-#include <asm/hvm/svm/svm.h>
-#include <asm/hvm/svm/vmcb.h>
 #include <asm/apic.h>
 #include <irq_vectors.h>
 #include <public/pmu.h>
Signature · 1 line
2.37.2
#3 lore raw
In reply to Xenia Ragiadakou
Quoted 11 lines · Xenia Ragiadakou

The patches remove forgotten and now unused virtualization technology specific headers from arch/x86/cpu/vpmu.c and arch/x86/hvm/emulate.c.

Xenia Ragiadakou (2):
x86/emulate: remove unused svm specific header x86/vpmu: remove unused svm and vmx specific headers

 xen/arch/x86/cpu/vpmu.c    | 4 ----
 xen/arch/x86/hvm/emulate.c | 1 -
 2 files changed, 5 deletions(-)

Oh excellent.  Acked-by: Andrew Cooper <[email protected]>

IMO the fixes tags are useful even if we won't want to backport them. It's an easy pointer for people to follow if needs be.

~Andrew