From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH for 4.5 v8 1/1] Add mmio_hole Date: Wed, 22 Oct 2014 12:21:16 +0100 Message-ID: <1413976876.19198.5.camel@citrix.com> References: <1413895346-31563-1-git-send-email-dslutz@verizon.com> <1413895346-31563-2-git-send-email-dslutz@verizon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1413895346-31563-2-git-send-email-dslutz@verizon.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: Don Slutz Cc: Stefano Stabellini , Ian Jackson , xen-devel@lists.xen.org, Jan Beulich , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On Tue, 2014-10-21 at 08:42 -0400, Don Slutz wrote: > If you add enough PCI devices then all mmio may not fit below 4G > which may not be the layout the user wanted. This allows you to > increase the below 4G address space that PCI devices can use and > therefore in more cases not have any mmio that is above 4G. > > There are real PCI cards that do not support mmio over 4G, so if you > want to emulate them precisely, you may also need to increase the > space below 4G for them. There are drivers for these cards that also > do not work if they have their mmio space mapped above 4G. > > This allows growing the MMIO hole to the size needed. > > This may help with using pci passthru and HVM. > > In the tools this is named mmio_hole_memkb. > > Signed-off-by: Don Slutz For the tools side: Acked-by: Ian Campbell Has this had a release exception? Or acks for the hvmloader side of things? > + /* > + * At the moment qemu-xen can't deal with relocated memory regions. > + * It's too close to the release to make a proper fix; for now, This isn't really accurate any more. No need for a v9 for this, and it would be inappropriate to change it in what is otherwise a code motion part of the patch. > + * only allow the MMIO hole to grow large enough to move guest memory > + * if we're running qemu-traditional. Items that don't fit will be > + * relocated into the 64-bit address space. Ian.