projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kvm: de-register mem region for MMIO (Glauber Costa)
[qemu]
/
kvm-all.c
diff --git
a/kvm-all.c
b/kvm-all.c
index
18e9361
..
5cb2db2
100644
(file)
--- a/
kvm-all.c
+++ b/
kvm-all.c
@@
-322,7
+322,7
@@
void kvm_set_phys_mem(target_phys_addr_t start_addr,
mem = kvm_lookup_slot(s, start_addr);
if (mem) {
- if (flags == IO_MEM_UNASSIGNED) {
+ if ((flags == IO_MEM_UNASSIGNED) || (flags >= TLB_MMIO)) {
mem->memory_size = 0;
mem->guest_phys_addr = start_addr;
mem->userspace_addr = 0;