]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
hvf: non-RAM, non-ROMD memory ranges are now correctly mapped in
authorCameron Esfahani <dirty@apple.com>
Sun, 24 Nov 2019 20:05:23 +0000 (12:05 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 26 Nov 2019 08:58:33 +0000 (09:58 +0100)
commitfbafbb6db77428d9a0bf22ea8e9c4a07140ae7d9
tree7fa26d7b7b619a103cb9ef8fb06b2643022cc655
parentc6f3215ffa3064fd04e00d2b159c3b90c3c9b1a5
hvf: non-RAM, non-ROMD memory ranges are now correctly mapped in

If an area is non-RAM and non-ROMD, then remove mappings so accesses
will trap and can be emulated.  Change hvf_find_overlap_slot() to take
a size instead of an end address: it wouldn't return a slot because
callers would pass the same address for start and end.  Don't always
map area as read/write/execute, respect area flags.

Signed-off-by: Cameron Esfahani <dirty@apple.com>
Message-Id: <1d8476c8f86959273fbdf23c86f8b4b611f5e2e1.1574625592.git.dirty@apple.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hvf/hvf.c