]> xenbits.xensource.com Git - xen.git/commitdiff
x86/pt: make it build with !CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 12:19:42 +0000 (13:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 30 Aug 2018 07:34:05 +0000 (08:34 +0100)
This requires providing stubs for a few functions which are part of
HVM code.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/include/asm-x86/hvm/io.h
xen/include/asm-x86/hvm/vmx/vmx.h

index e6b6ed0b92b291f137257e7a6af7f30552f7c375..8c83fd0c8ba4b5b0be013b2010540a4ed494633c 100644 (file)
@@ -125,7 +125,12 @@ void hvm_interrupt_post(struct vcpu *v, int vector, int type);
 void hvm_dpci_eoi(struct domain *d, unsigned int guest_irq,
                   const union vioapic_redir_entry *ent);
 void msix_write_completion(struct vcpu *);
+
+#ifdef CONFIG_HVM
 void msixtbl_init(struct domain *d);
+#else
+static inline void msixtbl_init(struct domain *d) {}
+#endif
 
 /* Arch-specific MSI data for vPCI. */
 struct vpci_arch_msi {
index 89619e4afdde0006410ae5adc9f6057a0ffca6cc..4966f725beb1c0ade94833f57e96fac44e7b48cb 100644 (file)
@@ -611,8 +611,13 @@ void p2m_init_hap_data(struct p2m_domain *p2m);
 void vmx_pi_per_cpu_init(unsigned int cpu);
 void vmx_pi_desc_fixup(unsigned int cpu);
 
+#ifdef CONFIG_HVM
 void vmx_pi_hooks_assign(struct domain *d);
 void vmx_pi_hooks_deassign(struct domain *d);
+#else
+static inline void vmx_pi_hooks_assign(struct domain *d) {}
+static inline void vmx_pi_hooks_deassign(struct domain *d) {}
+#endif
 
 #define APIC_INVALID_DEST           0xffffffff