summary refs log tree commit diff stats
path: root/docs/sphinx/qapi_domain.py
diff options
context:
space:
mode:
authorJiqian Chen <Jiqian.Chen@amd.com>2024-11-06 14:14:18 +0800
committerAnthony PERARD <anthony.perard@vates.tech>2025-03-10 13:25:14 +0100
commitcfcacbab38e43200264c06135946b1c5096c393a (patch)
treea54f1ee3dab3b713286201fedf414bd909d08f50 /docs/sphinx/qapi_domain.py
parent5136598e2667f35ef3dc1d757616a266bd5eb3a2 (diff)
downloadfocaccia-qemu-cfcacbab38e43200264c06135946b1c5096c393a.tar.gz
focaccia-qemu-cfcacbab38e43200264c06135946b1c5096c393a.zip
xen/passthrough: use gsi to map pirq when dom0 is PVH
In PVH dom0, when passthrough a device to domU, QEMU code
xen_pt_realize->xc_physdev_map_pirq wants to use gsi, but in current codes
the gsi number is got from file /sys/bus/pci/devices/<sbdf>/irq, that is
wrong, because irq is not equal with gsi, they are in different spaces, so
pirq mapping fails.

To solve above problem, use new interface of Xen, xc_pcidev_get_gsi to get
gsi and use xc_physdev_map_pirq_gsi to map pirq when dom0 is PVH.

Signed-off-by: Jiqian Chen <Jiqian.Chen@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Jiqian Chen <Jiqian.Chen@amd.com>
Acked-by: Anthony PERARD <anthony@xenproject.org>
Reviewed-by: Stewart Hildebrand <stewart.hildebrand@amd.com>
Message-Id: <20241106061418.3655304-1-Jiqian.Chen@amd.com>
Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
Diffstat (limited to 'docs/sphinx/qapi_domain.py')
0 files changed, 0 insertions, 0 deletions