* KVM_HYPERCALL
@ 2009-05-14 3:44 Kumar, Venkat
2009-05-17 20:25 ` KVM_HYPERCALL Avi Kivity
0 siblings, 1 reply; 7+ messages in thread
From: Kumar, Venkat @ 2009-05-14 3:44 UTC (permalink / raw)
To: kvm@vger.kernel.org
I am making a hypercall "kvm_hypercall0" with number 0 from a Linux guest. But I don't see the control coming to "handle_vmcall" or even "kvm_handle_exit". What could be the reason?
Thx,
Venkat
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM_HYPERCALL
2009-05-14 3:44 KVM_HYPERCALL Kumar, Venkat
@ 2009-05-17 20:25 ` Avi Kivity
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
0 siblings, 2 replies; 7+ messages in thread
From: Avi Kivity @ 2009-05-17 20:25 UTC (permalink / raw)
To: Kumar, Venkat; +Cc: kvm@vger.kernel.org
Kumar, Venkat wrote:
> I am making a hypercall "kvm_hypercall0" with number 0 from a Linux guest. But I don't see the control coming to "handle_vmcall" or even "kvm_handle_exit". What could be the reason?
>
No idea. kvm_handle_exit() is called very frequently, even without
hypercalls. Are you sure you don't see it called?
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: KVM_HYPERCALL
2009-05-17 20:25 ` KVM_HYPERCALL Avi Kivity
@ 2009-05-18 11:28 ` Kumar, Venkat
2009-05-18 11:33 ` KVM_HYPERCALL Avi Kivity
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
1 sibling, 1 reply; 7+ messages in thread
From: Kumar, Venkat @ 2009-05-18 11:28 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm@vger.kernel.org
Hi Avi - Yes the control is not coming to neither " kvm_handle_exit " nor "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?
Thx,
Venkat
-----Original Message-----
From: Avi Kivity [mailto:avi@redhat.com]
Sent: Monday, May 18, 2009 1:56 AM
To: Kumar, Venkat
Cc: kvm@vger.kernel.org
Subject: Re: KVM_HYPERCALL
Kumar, Venkat wrote:
> I am making a hypercall "kvm_hypercall0" with number 0 from a Linux guest. But I don't see the control coming to "handle_vmcall" or even "kvm_handle_exit". What could be the reason?
>
No idea. kvm_handle_exit() is called very frequently, even without
hypercalls. Are you sure you don't see it called?
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: KVM_HYPERCALL
2009-05-17 20:25 ` KVM_HYPERCALL Avi Kivity
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
@ 2009-05-18 11:28 ` Kumar, Venkat
2009-05-18 11:58 ` KVM_HYPERCALL Gregory Haskins
1 sibling, 1 reply; 7+ messages in thread
From: Kumar, Venkat @ 2009-05-18 11:28 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm@vger.kernel.org
Hi Avi - Yes the control is not coming to neither " kvm_handle_exit " nor "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?
Thx,
Venkat
-----Original Message-----
From: Avi Kivity [mailto:avi@redhat.com]
Sent: Monday, May 18, 2009 1:56 AM
To: Kumar, Venkat
Cc: kvm@vger.kernel.org
Subject: Re: KVM_HYPERCALL
Kumar, Venkat wrote:
> I am making a hypercall "kvm_hypercall0" with number 0 from a Linux guest. But I don't see the control coming to "handle_vmcall" or even "kvm_handle_exit". What could be the reason?
>
No idea. kvm_handle_exit() is called very frequently, even without
hypercalls. Are you sure you don't see it called?
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM_HYPERCALL
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
@ 2009-05-18 11:33 ` Avi Kivity
2009-05-18 12:26 ` KVM_HYPERCALL Kumar, Venkat
0 siblings, 1 reply; 7+ messages in thread
From: Avi Kivity @ 2009-05-18 11:33 UTC (permalink / raw)
To: Kumar, Venkat; +Cc: kvm@vger.kernel.org
Kumar, Venkat wrote:
> Hi Avi - Yes the control is not coming to neither " kvm_handle_exit " nor "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?
>
Yes, it should. Are you sure the guest is executing this instruction?
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM_HYPERCALL
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
@ 2009-05-18 11:58 ` Gregory Haskins
0 siblings, 0 replies; 7+ messages in thread
From: Gregory Haskins @ 2009-05-18 11:58 UTC (permalink / raw)
To: Kumar, Venkat; +Cc: Avi Kivity, kvm@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 927 bytes --]
Kumar, Venkat wrote:
> Hi Avi - Yes the control is not coming to neither " kvm_handle_exit " nor "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?
>
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 266 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: KVM_HYPERCALL
2009-05-18 11:33 ` KVM_HYPERCALL Avi Kivity
@ 2009-05-18 12:26 ` Kumar, Venkat
0 siblings, 0 replies; 7+ messages in thread
From: Kumar, Venkat @ 2009-05-18 12:26 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm@vger.kernel.org
Ok. With KVM-85 it works. I was using KVM-84 earlier.
Thx,
Venkat
-----Original Message-----
From: Avi Kivity [mailto:avi@redhat.com]
Sent: Monday, May 18, 2009 5:03 PM
To: Kumar, Venkat
Cc: kvm@vger.kernel.org
Subject: Re: KVM_HYPERCALL
Kumar, Venkat wrote:
> Hi Avi - Yes the control is not coming to neither " kvm_handle_exit " nor "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?
>
Yes, it should. Are you sure the guest is executing this instruction?
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-05-18 12:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 3:44 KVM_HYPERCALL Kumar, Venkat
2009-05-17 20:25 ` KVM_HYPERCALL Avi Kivity
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
2009-05-18 11:33 ` KVM_HYPERCALL Avi Kivity
2009-05-18 12:26 ` KVM_HYPERCALL Kumar, Venkat
2009-05-18 11:28 ` KVM_HYPERCALL Kumar, Venkat
2009-05-18 11:58 ` KVM_HYPERCALL Gregory Haskins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).