From: Tim Deegan Subject: Re: [PATCH RFC] x86/hvm: unify HVM and PVH hypercall tables. Date: Thu, 15 May 2014 12:30:08 +0200 Message-ID: <20140515103008.GB40104@deinos.phlegethon.org> References: <1399563090-30081-1-git-send-email-tim@xen.org> <20140508183943.GA3306@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20140508183943.GA3306@phenom.dumpdata.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: Konrad Rzeszutek Wilk Cc: George Dunlap , Keir Fraser , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 14:39 -0400 on 08 May (1399556383), Konrad Rzeszutek Wilk wrote: > On Thu, May 08, 2014 at 04:31:30PM +0100, Tim Deegan wrote: > > Stage one of many in merging PVH and HVM code in the hypervisor. > > > > This exposes a few new hypercalls to HVM guests, all of which were > > already available to PVH ones: > > > > - XENMEM_memory_map / XENMEM_machine_memory_map / XENMEM_machphys_mapping: > > These are basically harmless, if a bit useless to plain HVM. > > > > - VCPUOP_send_nmi / VCPUOP_initialise / VCPUOP[_is]_up / VCPUOP_down > > This will eventually let HVM guests bring up APs the way PVH ones do. > > For now, the VCPUOP_initialise paths are still gated on is_pvh. > > I had a similar patch to enable this under HVM and found out that > if the guest issues VCPUOP_send_nmi we get in Linux: > > [ 3.611742] Corrupted low memory at c000fffc (fffc phys) = 00029b00 > [ 2.386785] Corrupted low memory at ffff88000000fff8 (fff8 phys) = 2990000000000 > > http://mid.gmane.org/20140422183443.GA6817@phenom.dumpdata.com Right, thanks. Do you think that's likely to be a hypervisor bug, or just a "don't do that then"? AFAICT PVH domains need this as they have no other way of sending NMIs. Tim.