qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/3] memory: add API for creating ROM/device reg


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH 2/3] memory: add API for creating ROM/device regions
Date: Sat, 13 Aug 2011 20:05:25 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0

On 08/12/2011 06:48 AM, Anthony Liguori wrote:
      target_phys_addr_t offset_in_region;
      AddrRange addr;
      uint8_t dirty_log_mask;
+    bool readable;
@@ -125,6 +125,7 @@ struct FlatRange {

In a follow up, it might be good to add a comment explaining that this whole readable thing is not just an optimization, but a hard requirement for KVM in order to be able to execute code from ROM.

This has nothing to do with kvm (in fact, I think we cannot support it under kvm with current interfaces). It's there to support devices that sometimes act as RAM and sometimes as mmio.

We could also do it with a container and playing with subregions. I tried it and it was pretty complicated.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.




reply via email to

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