]> git.proxmox.com Git - mirror_qemu.git/commit - hw/xen/xen_pt_config_init.c
hw/xen: set pci Atomic Ops requests for passthrough device
authorRuili Ji <ruili.ji@amd.com>
Tue, 6 Sep 2022 06:09:41 +0000 (14:09 +0800)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 27 Sep 2022 13:23:23 +0000 (14:23 +0100)
commitfb36fb9344c284a58f3f3ec5be6408fc51eaf3f1
treeae6836673ac8fb4ff27a86aad3db057cc963f8e1
parent99d6b11b5b44d7dd64f4cb1973184e40a4a174f8
hw/xen: set pci Atomic Ops requests for passthrough device

Make guest os access pci device control 2 reg for passthrough device
as struct XenPTRegInfo described in the file hw/xen/xen_pt.h.
/* reg read only field mask (ON:RO/ROS, OFF:other) */
uint32_t ro_mask;
/* reg emulate field mask (ON:emu, OFF:passthrough) */
uint32_t emu_mask;

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1196
Signed-off-by: Aaron Liu <Aaron.Liu@amd.com>
Signed-off-by: Ruili Ji <ruili.ji@amd.com>
Message-ID: <BL1PR12MB599341DC55BA53FE588DE14E9B7E9@BL1PR12MB5993.namprd12.prod.outlook.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
hw/xen/xen_pt_config_init.c