hw/xen: Set emu_mask for igd_opregion register
commita19bae42e341a05f43f685fc9ff0e19ba6f129c3
authorXiong Zhang <xiong.y.zhang@intel.com>
Fri, 7 Jul 2017 04:07:58 +0000 (7 12:07 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Jul 2017 20:26:35 +0000 (18 13:26 -0700)
tree55f8db0944c2eb67bc63189e49b09f8d328892c1
parentf9dada2baabb639feb988b3a564df7a06d214e18
hw/xen: Set emu_mask for igd_opregion register

In igd passthrough environment, guest could only access opregion at the
first bootup time. Once guest shutdown, later guest couldn't access
opregion anymore.
This is because qemu set emulated guest opregion base address to host
register. Later guest get a wrong host opregion base address, and couldn't
access it anymore.

This patch set emu_mask for igd_opregion register, so guest won't set
guest opregion base address to host.

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/xen/xen_pt_config_init.c