From: Amit Shah Subject: Re: [PATCH] Refactor hypercall infrastructure (v2) Date: Mon, 3 Dec 2007 17:00:23 +0530 Message-ID: <200712031700.24084.amit.shah@qumranet.com> References: <11898788932902-git-send-email-aliguori@us.ibm.com> <200712031416.51710.amit.shah@qumranet.com> <4753C59A.4030206@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Avi Kivity To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: <4753C59A.4030206-atKUWr5tajBWk0Htik3J/w@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org * Avi Kivity wrote: > Amit Shah wrote: > > * Anthony Liguori wrote: > > =A0 > > > >> Amit Shah wrote: > >> =A0 =A0 > >> > >> What are you using to issue the hypercall? > >> =A0 =A0 > > > > + =A0 =A0 =A0 r =3D kvm_hypercall1(KVM_PV_PCI_DEVICE, page_gfn); > > > > Setup is done by: > > > > + =A0 =A0 =A0 if (!kvm_para_available()) { > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 printk(KERN_ERR "KVM paravirt support not= available\n"); > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 r =3D -ENODEV; > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 goto out_dereg; > > + =A0 =A0 =A0 } > > =A0 > > There was a bug where instructions with a modrm byte specifying a > register would try to access memory. =A0In the memory was not mapped, =A0 > emulation would fail. vmcall is one such instruction. =A0This was fixed by > > commit f83562246921d6a8a7de8b76853a6835ace3699d > Author: Aurelien Jarno > Date: =A0 Wed Oct 17 19:30:41 2007 +0200 > > =A0 =A0 KVM: x86 emulator: fix access registers for instructions with Mod= R/M > byte and Mod =3D 3 Thanks, and thank you, Aurelien! ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4