mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
xen, gfx passthrough: basic graphics passthrough support
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen <tiejun.chen@intel.com> Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
parent
bcd7461e7e
commit
798141799c
10 changed files with 165 additions and 1 deletions
|
@ -502,6 +502,7 @@ static int xen_pt_register_regions(XenPCIPassthroughState *s, uint16_t *cmd)
|
|||
d->rom.size, d->rom.base_addr);
|
||||
}
|
||||
|
||||
xen_pt_register_vga_regions(d);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -801,6 +802,7 @@ out:
|
|||
static void xen_pt_unregister_device(PCIDevice *d)
|
||||
{
|
||||
XenPCIPassthroughState *s = XEN_PT_DEVICE(d);
|
||||
XenHostPCIDevice *host_dev = &s->real_device;
|
||||
uint8_t machine_irq = s->machine_irq;
|
||||
uint8_t intx = xen_pt_pci_intx(s);
|
||||
int rc;
|
||||
|
@ -844,6 +846,8 @@ static void xen_pt_unregister_device(PCIDevice *d)
|
|||
/* delete all emulated config registers */
|
||||
xen_pt_config_delete(s);
|
||||
|
||||
xen_pt_unregister_vga_regions(host_dev);
|
||||
|
||||
memory_listener_unregister(&s->memory_listener);
|
||||
memory_listener_unregister(&s->io_listener);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue