diff mbox

[BUG?] vhost assert error with < 4GB of RAM

Message ID AANLkTily0gbkqX3ZajjzRwBZB8EaICA_OOBSKuvEkHU4@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Cam Macdonell July 20, 2010, 8:42 p.m. UTC
None
diff mbox

Patch

diff --git a/exec.c b/exec.c
index 5e9a5b7..991abfc 100644
--- a/exec.c
+++ b/exec.c
@@ -2592,7 +2592,9 @@  void
cpu_register_physical_memory_offset(target_phys_addr_t start_addr,
     ram_addr_t orig_size = size;
     subpage_t *subpage;

-    cpu_notify_set_memory(start_addr, size, phys_offset);
+    if (size > 0) {
+        cpu_notify_set_memory(start_addr, size, phys_offset);
+    }

     if (phys_offset == IO_MEM_UNASSIGNED) {