public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] KVM - add hypercall nr to kvm_run
@ 2007-07-16 19:24 Jeff Dike
       [not found] ` <20070716192447.GA16253-1LLyehjZOUUZWFFyALql+T+iFHGzDt/a@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Dike @ 2007-07-16 19:24 UTC (permalink / raw)
  To: Avi Kivity; +Cc: KVM devel, LKML

Add the hypercall number to kvm_run and initialize it.  This might be
considered API-changing, so I kept it separate.

Signed-off-by: Jeff Dike <jdike-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
--
 drivers/kvm/kvm_main.c |    1 +
 include/linux/kvm.h    |    1 +
 2 files changed, 2 insertions(+)

Index: kvm/drivers/kvm/kvm_main.c
===================================================================
--- kvm.orig/drivers/kvm/kvm_main.c
+++ kvm/drivers/kvm/kvm_main.c
@@ -1361,6 +1361,7 @@ int kvm_hypercall(struct kvm_vcpu *vcpu,
 	}
 	switch (nr) {
 	default:
+		run->hypercall.nr = nr;
 		run->hypercall.args[0] = a0;
 		run->hypercall.args[1] = a1;
 		run->hypercall.args[2] = a2;
Index: kvm/include/linux/kvm.h
===================================================================
--- kvm.orig/include/linux/kvm.h
+++ kvm/include/linux/kvm.h
@@ -106,6 +106,7 @@ struct kvm_run {
 		} mmio;
 		/* KVM_EXIT_HYPERCALL */
 		struct {
+			__u64 nr;
 			__u64 args[6];
 			__u64 ret;
 			__u32 longmode;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-07-18 19:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16 19:24 [PATCH 3/3] KVM - add hypercall nr to kvm_run Jeff Dike
     [not found] ` <20070716192447.GA16253-1LLyehjZOUUZWFFyALql+T+iFHGzDt/a@public.gmane.org>
2007-07-17  8:23   ` Avi Kivity
     [not found]     ` <469C7C8D.1020600-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-17  8:40       ` Avi Kivity
2007-07-17 14:15       ` Anthony Liguori
     [not found]         ` <469CCF17.3020709-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-07-17 16:07           ` Jeff Dike
     [not found]             ` <20070717160710.GC7965-1LLyehjZOUUZWFFyALql+T+iFHGzDt/a@public.gmane.org>
2007-07-18 16:28               ` Anthony Liguori
     [not found]                 ` <469E3FA2.7060408-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-07-18 17:41                   ` Jeff Dike
     [not found]                     ` <20070718174104.GA8655-1LLyehjZOUUZWFFyALql+T+iFHGzDt/a@public.gmane.org>
2007-07-18 19:25                       ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox