xemu/hw/misc
Zhuang Yanying b2b79a6960 ivshmem: Fix 64 bit memory bar configuration
Device ivshmem property use64=0 is designed to make the device
expose a 32 bit shared memory BAR instead of 64 bit one.  The
default is a 64 bit BAR, except pc-1.2 and older retain a 32 bit
BAR.  A 32 bit BAR can support only up to 1 GiB of shared memory.

This worked as designed until commit 5400c02 accidentally flipped
its sense: since then, we misinterpret use64=0 as use64=1 and vice
versa.  Worse, the default got flipped as well.  Devices
ivshmem-plain and ivshmem-doorbell are not affected.

Fix by restoring the test of IVShmemState member not_legacy_32bit
that got messed up in commit 5400c02.  Also update its
initialization for devices ivhsmem-plain and ivshmem-doorbell.
Without that, they'd regress to 32 bit BARs.

Signed-off-by: Zhuang Yanying <ann.zhuangyanying@huawei.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1479385863-7648-1-git-send-email-ann.zhuangyanying@huawei.com>
2016-11-17 18:39:59 +04:00
..
macio ppc: Fix macio ESCC legacy mapping 2016-09-07 12:40:12 +10:00
a9scu.c
applesmc.c
arm11scu.c
arm_integrator_debug.c
arm_l2x0.c
arm_sysctl.c
aspeed_scu.c aspeed: add a ast2500 SoC and support to the SCU and SDMC controllers 2016-09-22 18:13:05 +01:00
aspeed_sdmc.c aspeed: add a ram_size property to the memory controller 2016-09-22 18:13:06 +01:00
auxbus.c aux: Rename aux.[ch] to auxbus.[ch] for the benefit of Windows 2016-07-07 13:47:01 +01:00
bcm2835_mbox.c
bcm2835_property.c
cbus.c
debugexit.c
eccmemctl.c
edu.c hw/misc/edu: support MSI interrupt 2016-10-04 10:00:25 +02:00
exynos4210_pmu.c
hyperv_testdev.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
imx6_ccm.c imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
imx6_src.c imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
imx25_ccm.c imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
imx31_ccm.c imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
imx_ccm.c
ivshmem.c ivshmem: Fix 64 bit memory bar configuration 2016-11-17 18:39:59 +04:00
Makefile.objs ast2400: add a memory controller device model 2016-09-06 19:52:17 +01:00
max111x.c ssi: change ssi_slave_init to be a realize ops 2016-07-04 13:15:22 +01:00
milkymist-hpdmc.c
milkymist-pfpu.c milkymist-pfpu: fix potential integer overflow 2016-10-28 18:17:23 +03:00
mips_cmgcr.c hw/mips_cmgcr: implement RESET_BASE register in CM GCR 2016-07-12 09:10:16 +01:00
mips_cpc.c hw/mips_cpc: make VP correctly start from the reset vector 2016-07-12 09:10:15 +01:00
mips_itu.c
mst_fpga.c
omap_clk.c
omap_gpmc.c
omap_l4.c
omap_sdrc.c
omap_tap.c
pc-testdev.c
pci-testdev.c
puv3_pm.c
pvpanic.c
sga.c
slavio_misc.c
stm32f2xx_syscfg.c
tmp105.c
tmp105.h
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
vmport.c
zynq_slcr.c
zynq-xadc.c