From: Stefano Stabellini Subject: Re: gross qemu behavior Date: Fri, 4 Apr 2014 16:32:56 +0100 Message-ID: References: <5335376102000078000033DA@nat28.tlf.novell.com> <53394C620200007800003AE8@nat28.tlf.novell.com> <533E712D02000078000057CE@nat28.tlf.novell.com> <533EE4C10200007800005BE6@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WW677-0002in-Jc for xen-devel@lists.xenproject.org; Fri, 04 Apr 2014 15:33:05 +0000 In-Reply-To: <533EE4C10200007800005BE6@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: anthony.perard@citrix.com, xen-devel , Paolo Bonzini , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 4 Apr 2014, Jan Beulich wrote: > >>> On 04.04.14 at 15:53, wrote: > > On Fri, 4 Apr 2014, Jan Beulich wrote: > >> No, it should just never appear at the wrong address. As I said above, > >> I'd consider it halfway acceptable if it remained mapped despite an > >> unmap, but I do think that a proper solution (properly unmapping > >> without de-allocating) can and should be found. > > > > There is no way to do it today AFAICT. > > Would you care of proposing an hypercall that would support this > > scenario? > > Hypercall? Everything you need is there afaict. Maybe I am missing something. Moving the PCI ROM to the right place in the guest physmap is easy. However how do you think we could unmap the memory (remove it from the guest physmap) without deallocating it? The only hypercall we have is xc_domain_add_to_physmap at the moment. Unless you are thinking of allocating the ROM in a QEMU buffer, but that would still go against QEMU's way and has the same bad side effects of the other approach.