summary refs log tree commit diff stats
path: root/hw/xen/xen-mapcache.c
diff options
context:
space:
mode:
authorRoss Lagerwall <ross.lagerwall@citrix.com>2023-11-03 17:26:01 +0000
committerAnthony PERARD <anthony.perard@citrix.com>2024-03-12 14:13:08 +0000
commit25b287345b4979b28b8c968f5e04023e85270120 (patch)
tree5c31daa67b8ff9d3926ca61dfeddf42d91237490 /hw/xen/xen-mapcache.c
parent8f3f329f5e0117bd1a23a79ab751f8a7d3471e4b (diff)
downloadfocaccia-qemu-25b287345b4979b28b8c968f5e04023e85270120.tar.gz
focaccia-qemu-25b287345b4979b28b8c968f5e04023e85270120.zip
xen/pt: Emulate multifunction bit in header type
The intention of the code appears to have been to unconditionally set
the multifunction bit but since the emulation mask is 0x00 it has no
effect. Instead, emulate the bit and set it based on the multifunction
property of the PCIDevice (which can be set using QAPI).

This allows making passthrough devices appear as functions in a Xen
guest.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Message-Id: <20231103172601.1319375-1-ross.lagerwall@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Diffstat (limited to 'hw/xen/xen-mapcache.c')
0 files changed, 0 insertions, 0 deletions