From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: Kernel panic with tboot E820_UNUSABLE region Date: Tue, 14 May 2013 17:49:32 +0100 Message-ID: <51926B1C.7060508@citrix.com> References: <51921AA8.1010807@citrix.com> <519241F3.6070801@citrix.com> <51924B56.3070500@citrix.com> <51926A6902000078000D6134@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51926A6902000078000D6134@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: "xen-devel@lists.xensource.com" , Aurelien Chartier , David Vrabel , Ross Philipson , "konrad.wilk@oracle.com" List-Id: xen-devel@lists.xenproject.org On 14/05/13 15:46, Jan Beulich wrote: >>>> On 14.05.13 at 16:33, Aurelien Chartier wrote: > > With > >> (XEN) 0000000000100000 - 0000000000800000 (usable) >> (XEN) 0000000000800000 - 0000000000975000 (unusable) >> (XEN) 0000000000975000 - 0000000020000000 (usable) >> ... >> The region 0000000000975000 - 0000000020000000 has been set to unusable >> by tboot. > > ... you certainly mean the range 800000-975000. > >> Calls to update_va_mapping show the following error messages (with mfn >> going from 800 to 974): >> >> (XEN) mm.c:911:d0 Error getting mfn 800 (pfn 5555555555555555) from L1 >> entry 0000000000800463 for l1e_owner=0, pg_owner=0 > > Yes, the kernel has no business mapping that region, and the > hypervisor rightly refuses the attempt. Ok, so this is Xen checking the new PTE supplied in the update_va_mapping hypercall and saying no. I think there are two things the kernel can do here. a) Change the type of UNUSABLE regions to RAM. b) Release pages overlapping UNUSABLE regions, destroy their mapping and clear/invalidate the region in the p2m. Option a) is probably the easiest. David