From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH v5 1/1] Add mmio_hole_size Date: Tue, 30 Sep 2014 11:36:49 -0400 Message-ID: <542ACE11.5020309@oracle.com> References: <1410452423-11345-1-git-send-email-dslutz@verizon.com> <1410452423-11345-2-git-send-email-dslutz@verizon.com> <542A06F6.1060205@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Ian Campbell , Stefano Stabellini , Ian Jackson , Don Slutz , "xen-devel@lists.xen.org" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 09/30/2014 09:22 AM, George Dunlap wrote: > On Tue, Sep 30, 2014 at 2:27 AM, Boris Ostrovsky > wrote: >>> + if ( mmio_hole_size ) >>> + { >>> + uint64_t max_ram_below_4g = (1ULL << 32) - mmio_hole_size; >>> + >>> + if ( max_ram_below_4g > HVM_BELOW_4G_MMIO_START ) >>> + { >>> + printf("max_ram_below_4g=0x"PRIllx >>> + " too big for mmio_hole_size=0x"PRIllx >>> + " has been ignored.\n", >>> + PRIllx_arg(max_ram_below_4g), >>> + PRIllx_arg(mmio_hole_size)); >>> + } >> >> Do you need to check whether the hole is too large? >> >> Here and in the toolstack. > How large is too large? I've seen real machines with a 3GiB memory hole... But if mmio_hole_size is set to, say, 4GB we can't expect anything good, right? I don't know what the reasonable upper limit on it should be but it seems to me we need one. Especially given that it's a uint64_t. -boris