Xen PV Device
From: Paul Durrant <[email protected]>
Introduces a new Xen PV PCI device which will act as a binding point for PV drivers for Xen.
The device has parameterized vendor-id, device-id and revision to allow to be configured as a binding point for any vendor's PV drivers.
Signed-off-by Paul Durrant <[email protected]>
Signed-off-by Stefano Stabellini <[email protected]>
Reviewed-by Andreas Färber <[email protected]>
--- hw/xen/Makefile.objs | 2 +- hw/xen/xen_pvdevice.c | 131 ++++++++++++++++++++++++++++++++++++++++++++++ include/hw/pci/pci_ids.h | 5 +- trace-events | 4 ++ 4 files changed, 139 insertions(+), 3 deletions(-) create mode 100644 hw/xen/xen_pvdevice.c
hw/xen/Makefile.objs +1 -1
@@ -1,6 +1,6 @@ # xen backend driver support common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o -obj-$(CONFIG_XEN_I386) += xen_platform.o xen_apic.o +obj-$(CONFIG_XEN_I386) += xen_platform.o xen_apic.o xen_pvdevice.o obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_msi.o
hw/xen/xen_pvdevice.c new file +131 -0
131 lines not on this page · raw message
include/hw/pci/pci_ids.h +3 -2
@@ -143,8 +143,9 @@#define PCI_DEVICE_ID_INTEL_Q35_MCH 0x29c0 -#define PCI_VENDOR_ID_XEN 0x5853 -#define PCI_DEVICE_ID_XEN_PLATFORM 0x0001 +#define PCI_VENDOR_ID_XEN 0x5853 +#define PCI_DEVICE_ID_XEN_PLATFORM 0x0001 +#define PCI_DEVICE_ID_XEN_PVDEVICE 0x0002#define PCI_VENDOR_ID_NEC 0x1033#define PCI_DEVICE_ID_NEC_UPD720200 0x0194
trace-events +4 -0
@@ -1168,3 +1168,7 @@ kvm_run_exit(int cpu_index, uint32_t reason) "cpu_index %d, reason %d" # qom/object.c object_dynamic_cast_assert(const char *type, const char *target, const char *file, int line, const char *func) "%s->%s (%s:%d:%s)" object_class_dynamic_cast_assert(const char *type, const char *target, const char *file, int line, const char *func) "%s->%s (%s:%d:%s)" + +# hw/xen/xen_pvdevice.c +xen_pv_mmio_read(uint64_t addr) "WARNING: read from Xen PV Device MMIO space (address %"PRIx64")" +xen_pv_mmio_write(uint64_t addr) "WARNING: write to Xen PV Device MMIO space (address %"PRIx64")"
Signature · 1 line
1.7.2.5