* [PATCH] portability: move kvm_fpu to asm-x86/kvm.h
@ 2008-01-08 7:04 Christian Ehrhardt
[not found] ` <1199775890523-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Christian Ehrhardt @ 2008-01-08 7:04 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: Christian Ehrhardt,
"Zhang Xiantao" <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>; Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>; Hollis Blanchard
Subject: [PATCH] portability: move kvm_fpu to asm-x86/kvm.h
From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
This patch moves kvm_fpu asm-x86/kvm.h to allow every architecture to
define an own representation used for KVM_GET_FPU/KVM_SET_FPU.
Signed-off-by: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Acked-by: Carsten Otte <cotte-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
asm-x86/kvm.h | 15 +++++++++++++++
linux/kvm.h | 17 -----------------
2 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h
index 17afa81..7a71120 100644
--- a/include/asm-x86/kvm.h
+++ b/include/asm-x86/kvm.h
@@ -114,6 +114,21 @@ struct kvm_sregs {
__u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64];
};
+/* for KVM_GET_FPU and KVM_SET_FPU */
+struct kvm_fpu {
+ __u8 fpr[8][16];
+ __u16 fcw;
+ __u16 fsw;
+ __u8 ftwx; /* in fxsave format */
+ __u8 pad1;
+ __u16 last_opcode;
+ __u64 last_ip;
+ __u64 last_dp;
+ __u8 xmm[16][16];
+ __u32 mxcsr;
+ __u32 pad2;
+};
+
struct kvm_msr_entry {
__u32 index;
__u32 reserved;
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index b27a381..4de4fd2 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -142,23 +142,6 @@ struct kvm_run {
};
};
-
-/* for KVM_GET_FPU and KVM_SET_FPU */
-struct kvm_fpu {
- __u8 fpr[8][16];
- __u16 fcw;
- __u16 fsw;
- __u8 ftwx; /* in fxsave format */
- __u8 pad1;
- __u16 last_opcode;
- __u64 last_ip;
- __u64 last_dp;
- __u8 xmm[16][16];
- __u32 mxcsr;
- __u32 pad2;
-};
-
-
/* for KVM_TRANSLATE */
struct kvm_translation {
/* in */
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1199775890523-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH] portability: move kvm_fpu to asm-x86/kvm.h [not found] ` <1199775890523-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2008-01-08 7:11 ` Zhang, Xiantao 2008-01-08 10:35 ` Avi Kivity 1 sibling, 0 replies; 3+ messages in thread From: Zhang, Xiantao @ 2008-01-08 7:11 UTC (permalink / raw) To: Christian Ehrhardt, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Cc: "Zhang Xiantao" <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>; Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>; Hollis Blanchard Acked-by: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Christian Ehrhardt wrote: > Subject: [PATCH] portability: move kvm_fpu to asm-x86/kvm.h > From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > > This patch moves kvm_fpu asm-x86/kvm.h to allow every architecture to > define an own representation used for KVM_GET_FPU/KVM_SET_FPU. > > Signed-off-by: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > Acked-by: Carsten Otte <cotte-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> > > asm-x86/kvm.h | 15 +++++++++++++++ > linux/kvm.h | 17 ----------------- > 2 files changed, 15 insertions(+), 17 deletions(-) > > diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h > index 17afa81..7a71120 100644 > --- a/include/asm-x86/kvm.h > +++ b/include/asm-x86/kvm.h > @@ -114,6 +114,21 @@ struct kvm_sregs { > __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64]; > }; > > +/* for KVM_GET_FPU and KVM_SET_FPU */ > +struct kvm_fpu { > + __u8 fpr[8][16]; > + __u16 fcw; > + __u16 fsw; > + __u8 ftwx; /* in fxsave format */ > + __u8 pad1; > + __u16 last_opcode; > + __u64 last_ip; > + __u64 last_dp; > + __u8 xmm[16][16]; > + __u32 mxcsr; > + __u32 pad2; > +}; > + > struct kvm_msr_entry { > __u32 index; > __u32 reserved; > diff --git a/include/linux/kvm.h b/include/linux/kvm.h > index b27a381..4de4fd2 100644 > --- a/include/linux/kvm.h > +++ b/include/linux/kvm.h > @@ -142,23 +142,6 @@ struct kvm_run { > }; > }; > > - > -/* for KVM_GET_FPU and KVM_SET_FPU */ > -struct kvm_fpu { > - __u8 fpr[8][16]; > - __u16 fcw; > - __u16 fsw; > - __u8 ftwx; /* in fxsave format */ > - __u8 pad1; > - __u16 last_opcode; > - __u64 last_ip; > - __u64 last_dp; > - __u8 xmm[16][16]; > - __u32 mxcsr; > - __u32 pad2; > -}; > - > - > /* for KVM_TRANSLATE */ > struct kvm_translation { > /* in */ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] portability: move kvm_fpu to asm-x86/kvm.h [not found] ` <1199775890523-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2008-01-08 7:11 ` Zhang, Xiantao @ 2008-01-08 10:35 ` Avi Kivity 1 sibling, 0 replies; 3+ messages in thread From: Avi Kivity @ 2008-01-08 10:35 UTC (permalink / raw) To: Christian Ehrhardt Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, "Zhang Xiantao" <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>; Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>; Hollis Blanchard Christian Ehrhardt wrote: > Subject: [PATCH] portability: move kvm_fpu to asm-x86/kvm.h > From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > > This patch moves kvm_fpu asm-x86/kvm.h to allow every architecture to > define an own representation used for KVM_GET_FPU/KVM_SET_FPU. > > Applied, thanks. I wonder how that survived for so long. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-08 10:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 7:04 [PATCH] portability: move kvm_fpu to asm-x86/kvm.h Christian Ehrhardt
[not found] ` <1199775890523-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-01-08 7:11 ` Zhang, Xiantao
2008-01-08 10:35 ` Avi Kivity
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox