qemu/hw/xen
Konrad Rzeszutek Wilk e2779de053 xen/pt: Remove XenPTReg->data field.
We do not want to have two entries to cache the guest configuration
registers: XenPTReg->data and dev.config. Instead we want to use
only the dev.config.

To do without much complications we rip out the ->data field
and replace it with an pointer to the dev.config. This way we
have the type-checking (uint8_t, uint16_t, etc) and as well
and pre-computed location.

Alternatively we could compute the offset in dev.config by
using the XenPTRRegInfo and XenPTRegGroup every time but
this way we have the pre-computed values.

This change also exposes some mis-use:
 - In 'xen_pt_status_reg_init' we used u32 for the Capabilities Pointer
   register, but said register is an an u16.
 - In 'xen_pt_msgdata_reg_write' we used u32 but should have only use u16.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2015-09-10 16:47:12 +00:00
..
Makefile.objs xen, gfx passthrough: basic graphics passthrough support 2015-09-10 12:04:28 +00:00
xen_backend.c xen_backend: Remove unused error handling of qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
xen_devconfig.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
xen_pt_config_init.c xen/pt: Remove XenPTReg->data field. 2015-09-10 16:47:12 +00:00
xen_pt_graphics.c xen, gfx passthrough: add opregion mapping 2015-09-10 12:04:29 +00:00
xen_pt_msi.c xen/pt: Make xen_pt_msi_set_enable static 2015-09-10 12:04:30 +00:00
xen_pt.c xen/pt: Use xen_host_pci_get_[byte|word] instead of dev.config 2015-09-10 16:46:25 +00:00
xen_pt.h xen/pt: Remove XenPTReg->data field. 2015-09-10 16:47:12 +00:00
xen-host-pci-device.c xen, gfx passthrough: basic graphics passthrough support 2015-09-10 12:04:28 +00:00
xen-host-pci-device.h xen, gfx passthrough: basic graphics passthrough support 2015-09-10 12:04:28 +00:00