Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-12-01 Thread Avi Kivity
Hollis Blanchard wrote: > I hope to have multiple kvm-ppc-XXX.ko modules loaded simultaneously to > support different guest types on the same host. I haven't yet figured > out what that interface should look like, but obviously linking is > preferable to function pointers where feasible. > At l

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-12-01 Thread Avi Kivity
Hollis Blanchard wrote: >> >> These cannot use the same method, since we need to support both vmx and >> svm in the same binary. The arch specific members aren't the same size, >> nor do the symbols they use have the same visibility. >> > > I have never understood this. Why on earth do you ne

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Hollis Blanchard
On Fri, 2007-11-30 at 15:43 -0600, Anthony Liguori wrote: > Hollis Blanchard wrote: > > On Fri, 2007-11-30 at 22:31 +0200, Avi Kivity wrote: > > > >> These cannot use the same method, since we need to support both vmx and > >> svm in the same binary. The arch specific members aren't the same

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Anthony Liguori
Hollis Blanchard wrote: > On Fri, 2007-11-30 at 22:31 +0200, Avi Kivity wrote: > >> Hollis Blanchard wrote: >> >>> On Fri, 2007-11-30 at 11:04 +0200, Avi Kivity wrote: >>> >>> Zhang, Xiantao wrote: >>> >>> >>>

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Hollis Blanchard
On Fri, 2007-11-30 at 22:31 +0200, Avi Kivity wrote: > Hollis Blanchard wrote: > > On Fri, 2007-11-30 at 11:04 +0200, Avi Kivity wrote: > > > >> Zhang, Xiantao wrote: > >> > > > > > The nicer one: > > struct kvm { > struct kvm_arch a

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Avi Kivity
Hollis Blanchard wrote: > On Fri, 2007-11-30 at 11:04 +0200, Avi Kivity wrote: > >> Zhang, Xiantao wrote: >> > > The nicer one: struct kvm { struct kvm_arch arch; // common fields } >>> I p

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Hollis Blanchard
On Fri, 2007-11-30 at 11:04 +0200, Avi Kivity wrote: > Zhang, Xiantao wrote: > > > >>> > >> The nicer one: > >> > >>struct kvm { > >> struct kvm_arch arch; > >> // common fields > >>} > >> > > > > I prefer this one, seems it is more direct and readable. Same thin

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> >>> The nicer one: >>> >>>struct kvm { >>> struct kvm_arch arch; >>> // common fields >>>} >>> >> >> I prefer this one, seems it is more direct and readable. Same >> thinking about kvm_vcpu structure:) >> > > I agree,

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Avi Kivity
Zhang, Xiantao wrote: > >>> >> The nicer one: >> >>struct kvm { >> struct kvm_arch arch; >> // common fields >>} >> > > I prefer this one, seems it is more direct and readable. Same thinking > about kvm_vcpu structure:) > I agree, kvm_vcpu should use the same

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-30 Thread Zhang, Xiantao
Avi Kivity wrote: > Hollis Blanchard wrote: >> On Wed, 2007-11-21 at 11:18 +0200, Avi Kivity wrote: >>> Well, I hate to say it, but the resulting code doesn't look too well >>> (all the kvm_x86 variables), and it's entirely my fault as I >>> recommended this approach. Not like it was diffic

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-29 Thread Avi Kivity
Hollis Blanchard wrote: > On Wed, 2007-11-21 at 11:18 +0200, Avi Kivity wrote: > >> Carsten Otte wrote: >> >>> Hollis Blanchard wrote: >>> >>> These patches are based on Xiantao's work to create struct kvm_x86. Patch 1 replaces his "KVM Portability split: Splitting kvm

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-28 Thread Hollis Blanchard
On Wed, 2007-11-21 at 11:18 +0200, Avi Kivity wrote: > Carsten Otte wrote: > > Hollis Blanchard wrote: > > > >> These patches are based on Xiantao's work to create struct kvm_x86. Patch > >> 1 replaces his "KVM Portability split: Splitting kvm structure (V2)", and > >> patches 2 and 3 build on

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-21 Thread Avi Kivity
Zhang, Xiantao wrote: >> IIRC a downside was mentioned that it is easier to cause a build >> failure for another arch now. >> > > I can't figure out why it can cause more build failure. > Nothing stops you from doing kvm->arch.blah in kvm_main.c, but blah will not be present for all archi

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-21 Thread Zhang, Xiantao
Avi Kivity wrote: > Carsten Otte wrote: >> Hollis Blanchard wrote: >> >>> These patches are based on Xiantao's work to create struct kvm_x86. >>> Patch 1 replaces his "KVM Portability split: Splitting kvm >>> structure (V2)", and patches 2 and 3 build on it. >>> >> Looks like a clean approach w

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-21 Thread Carsten Otte
Avi Kivity wrote: > Well, I hate to say it, but the resulting code doesn't look too well > (all the kvm_x86 variables), and it's entirely my fault as I recommended > this approach. Not like it was difficult to predict. > > I'm thinking again of > > struct kvm { > struct kvm_arch a; >

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-21 Thread Amit Shah
* Avi Kivity wrote: > Carsten Otte wrote: > > Hollis Blanchard wrote: > >> These patches are based on Xiantao's work to create struct kvm_x86. > >> Patch 1 replaces his "KVM Portability split: Splitting kvm structure > >> (V2)", and patches 2 and 3 build on it. > > > > Looks like a clean approach w

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-21 Thread Avi Kivity
Carsten Otte wrote: > Hollis Blanchard wrote: > >> These patches are based on Xiantao's work to create struct kvm_x86. Patch 1 >> replaces his "KVM Portability split: Splitting kvm structure (V2)", and >> patches 2 and 3 build on it. >> > Looks like a clean approach with to to_kvm_x86 mac

Re: [kvm-devel] [PATCH 0 of 3] create kvm_x86

2007-11-21 Thread Carsten Otte
Hollis Blanchard wrote: > These patches are based on Xiantao's work to create struct kvm_x86. Patch 1 > replaces his "KVM Portability split: Splitting kvm structure (V2)", and > patches 2 and 3 build on it. Looks like a clean approach with to to_kvm_x86 macro. Whole series: Acked-by: Carsten Otte