From: "Jan Beulich" Subject: Re: [PATCH] libxc: Expose the pdpe1gb cpuid flag to guest Date: Tue, 25 Nov 2014 08:20:51 +0000 Message-ID: <547449F3020000780004A924@mail.emea.novell.com> References: <20141117163017.GA29684@deinos.phlegethon.org> <546A2503.4000302@citrix.com> <20141117170032.GB29684@deinos.phlegethon.org> <546A2F7D.8050507@citrix.com> <20141118101443.GA13651@deinos.phlegethon.org> <546B22ED.5020507@citrix.com> <1416320809.17982.14.camel@citrix.com> <20141118151542.GB13651@deinos.phlegethon.org> <20141119095440.GA1409@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Z Zhang Cc: Tim Deegan , "wei.liu2@citrix.com" , Ian Campbell , "stefano.stabellini@eu.citrix.com" , Andrew Cooper , Liang Z Li , Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 25.11.14 at 02:47, wrote: > Tim Deegan wrote on 2014-11-19: >> At 01:29 +0000 on 19 Nov (1416356943), Zhang, Yang Z wrote: >>> Tim Deegan wrote on 2014-11-18: >>>> In this case, the guest is entitled to _expect_ pagefaults on 1GB >>>> mappings if CPUID claims they are not supported. That sounds like >>>> an unlikely thing for the guest to be relying on, but Xen itself >>>> does something similar for the SHOPT_FAST_FAULT_PATH (and now also >>>> for IOMMU entries for the deferred caching attribute updates). >>> >>> Indeed. How about adding the software check (as Andrew mentioned) >>> firstly and leave the hardware problem (Actually, I don't think we >>> can solve it currently). >> >> I don't think we should change the software path unless we can change >> the hardware behaviour too. It's better to be consistent, and it >> saves us some cycles in the pt walker. > > So if we don't need to add the software check, does this mean current patch > is ok? No - Tim having confirmed that shadow mode doesn't support 1Gb pages, the feature clearly must not be made visible for shadow mode guest. Jan