qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 12/12] hw: move memory API to hw/core
Date: Thu, 11 Apr 2013 19:09:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

Il 11/04/2013 18:28, Peter Maydell ha scritto:
> On 11 April 2013 17:10, Paolo Bonzini <address@hidden> wrote:
>> > Signed-off-by: Paolo Bonzini <address@hidden>
> This doesn't look right. The MemoryRegion system isn't
> hw-specific, it's a part of the basic QEMU emulation
> system which provides functionality to hw/ and other
> things (like cputlb.c).

The accelerator- and target-independent parts of the basic emulation are
already in hw/core (not much really, but consider that CPUs are device
and depend on hw/core/qdev.c).  The memory API is simply the interface
between the accelerators and hw/ (boards & device models).

In fact, apart from large parts of exec.c which are really part of the
memory API implementation (but I'm not moving it in this patch for
simplicity), the other users of the memory API are really the
accelerators.  KVM and Xen only use listeners, TCG needs more low-level
access in cputlb.c and translate-all.c but that's pretty much it.

Paolo




reply via email to

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