Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-26 Thread Avi Kivity
Yang, Sheng wrote: Sorry for not explain clearly. This patch replaces vmcs_write32_fixedbits() with adjust_vmx_controls(), It still doesn't say why, but I can now see it: this is code from Xen. I have no objection to copying Xen code, but it needs to be documented in the changelog, and there

Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-26 Thread Li, Xin B
This patch replaces vmcs_write32_fixedbits() with adjust_vmx_controls(), It still doesn't say why, but I can now see it: this is code from Xen. I have no objection to copying Xen code, but it needs to be documented in the changelog, and there needs to be a good reason as to why you're

Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-26 Thread Avi Kivity
Li, Xin B wrote: -static struct vmcs_descriptor { +static struct vmcs_config { Why the name change? Just for Xen compatibility? If that's the only reason, it's insufficent. If you agree the above, this becomes reasonable. -Xin I'm not a English native speaker,

Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-26 Thread Li, Xin B
-static struct vmcs_descriptor { +static struct vmcs_config { Why the name change? Just for Xen compatibility? If that's the only reason, it's insufficent. If you agree the above, this becomes reasonable. -Xin I'm not a English native speaker, maybe descriptor is a good name too. -xin

Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-26 Thread Avi Kivity
Li, Xin B wrote: This patch replaces vmcs_write32_fixedbits() with adjust_vmx_controls(), It still doesn't say why, but I can now see it: this is code from Xen. I have no objection to copying Xen code, but it needs to be documented in the changelog, and there needs to be

Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-26 Thread Yang, Sheng
(). I attached modified patch. If you need more information, please let me know. Thanks Yang, Sheng -Original Message- From: Avi Kivity [mailto:[EMAIL PROTECTED] Sent: 2007年7月26日 13:20 To: Yang, Sheng Cc: kvm-devel@lists.sourceforge.net Subject: Re: [kvm-devel] [PATCH]Abstract vmcs

Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-26 Thread Yang, Sheng
Do you mean the description of patch? Thanks Yang, Sheng -Original Message- From: Avi Kivity [mailto:[EMAIL PROTECTED] Sent: 2007年7月26日 17:50 To: Li, Xin B Cc: Yang, Sheng; kvm-devel@lists.sourceforge.net Subject: Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part Sure. Please

Re: [kvm-devel] [PATCH]Abstract vmcs feature detect part

2007-07-25 Thread Avi Kivity
Yang, Sheng wrote: This patch changes a method to check cpu capability, so we can set vmcs more conveniently. Please explain the motivation for the change. What is more convenient? -static __init void setup_vmcs_descriptor(void) +static __init u32 adjust_vmx_controls(u32 ctl_min,