From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Haskins Subject: Re: KVM_HYPERCALL Date: Mon, 18 May 2009 07:58:34 -0400 Message-ID: <4A114D6A.2030508@gmail.com> References: <3D9CB4061D1EB3408D4A0B910433453C030BCA8A1A@inbmail01.lsi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA56894345C1810F013B84041" Cc: Avi Kivity , "kvm@vger.kernel.org" To: "Kumar, Venkat" Return-path: Received: from an-out-0708.google.com ([209.85.132.243]:44285 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753901AbZERL6k (ORCPT ); Mon, 18 May 2009 07:58:40 -0400 Received: by an-out-0708.google.com with SMTP id d40so10094996and.1 for ; Mon, 18 May 2009 04:58:40 -0700 (PDT) In-Reply-To: <3D9CB4061D1EB3408D4A0B910433453C030BCA8A1A@inbmail01.lsi.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA56894345C1810F013B84041 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Kumar, Venkat wrote: > Hi Avi - Yes the control is not coming to neither " kvm_handle_exit " n= or "handle_vmcall" after the hypercall is made from the guest. > If I am not wrong, the "KVM_HYPERCALL" instruction is expected to work,= isn't it? > =20 Hi Venkat, I have used this method of IO many times, so I can attest it does work in general. I suspect that there may be some issue in either the configuration of your environment or perhaps your particular usage of it.= What version guest and host are you running? Can you confirm that your guest has the proper pv-ops support enabled? If so, do you check the cpuid for the presence of your HC feature (or at least check for the presence of others if you are not explicitly advertising your own, like MMU_OP). See kvm_para_has_feature(). If that returns 'true' then you at least know the hypercall patching has been performed on your guest. -Greg --------------enigA56894345C1810F013B84041 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoRTWoACgkQP5K2CMvXmqFv/wCeNs4yigXOsU/E6+LN6Or1/vDB /9wAni9K4ee71KJoAUlCe+jl9oMfLiGw =/LcW -----END PGP SIGNATURE----- --------------enigA56894345C1810F013B84041--