qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL] Memory API fixes - rom/device


From: Avi Kivity
Subject: Re: [Qemu-devel] [PULL] Memory API fixes - rom/device
Date: Mon, 29 Aug 2011 12:06:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

On 08/28/2011 06:52 PM, Avi Kivity wrote:
Anthony, please pull from

  git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/core

to receive fixes for the rom/device API - initialize ->ops and a new ->opaque.

Avi Kivity (2):
      memory: fix memory_region_init_rom_device() not initializing ->ops
      memory: add opaque parameter to memory_region_init_rom_device()


I tacked on a third commit:

commit b5fe14cc7efa4e3ef58f591728e69203287a9de4
Author: Avi Kivity <address@hidden>
Date:   Mon Aug 29 09:12:49 2011 +0300

    memory: fix rom_device I/O mode

    When adding a rom_device in I/O mode, we incorrectly masked off the low
bits, resulting in a pure RAM map. Fix my masking off the high bits and
    IO_MEM_ROMD, yielding a pure I/O map.

    Signed-off-by: Avi Kivity <address@hidden>

diff --git a/memory.c b/memory.c
index 1491a39..eb31fa8 100644
--- a/memory.c
+++ b/memory.c
@@ -304,7 +304,7 @@ static void as_memory_range_add(AddressSpace *as, FlatRange *fr)
     }

     if (!fr->readable) {
-        phys_offset &= TARGET_PAGE_MASK;
+        phys_offset &= ~TARGET_PAGE_MASK & ~IO_MEM_ROMD;
     }

     cpu_register_physical_memory_log(fr->addr.start,


--
error compiling committee.c: too many arguments to function




reply via email to

[Prev in Thread] Current Thread [Next in Thread]