public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Sheng Yang <sheng@linux.intel.com>
Cc: Gui Jianfeng <guijianfeng@cn.fujitsu.com>,
	mtosatti@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH] KMV: VMX: consult IA32_VMX_EPT_VPID_CAP to determine EPT paging-structure memory type
Date: Tue, 23 Mar 2010 12:19:15 +0200	[thread overview]
Message-ID: <4BA895A3.4060807@redhat.com> (raw)
In-Reply-To: <201003221713.26941.sheng@linux.intel.com>

On 03/22/2010 11:13 AM, Sheng Yang wrote:
>
>> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
>> index 06108f3..f971b9b 100644
>> --- a/arch/x86/kvm/vmx.c
>> +++ b/arch/x86/kvm/vmx.c
>> @@ -1804,9 +1804,15 @@ static u64 construct_eptp(unsigned long root_hpa)
>>   {
>>   	u64 eptp;
>>
>> -	/* TODO write the value reading from MSR */
>> -	eptp = VMX_EPT_DEFAULT_MT |
>> -		VMX_EPT_DEFAULT_GAW<<  VMX_EPT_GAW_EPTP_SHIFT;
>> +	if (cpu_has_vmx_eptp_writeback())
>> +		eptp = VMX_EPT_MT_WRBACK |
>> +			VMX_EPT_DEFAULT_GAW<<  VMX_EPT_GAW_EPTP_SHIFT;
>>      
> I prefer to ensure WB is supported and used as default. Otherwise it would be
> a big trouble for memory subsystem(to use UC for all memory). Both WB and UC
> EPT memory types are ensured to be support in hardware.
>
> And you can remove VMX_EPT_DEFAULT_MT as well.
>    

I agree, hopefully we never ever see a cpu that doesn't support EPT WB.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-03-23 10:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22  9:06 [PATCH] KMV: VMX: consult IA32_VMX_EPT_VPID_CAP to determine EPT paging-structure memory type Gui Jianfeng
2010-03-22  9:13 ` Sheng Yang
2010-03-23 10:19   ` Avi Kivity [this message]
2010-03-26  1:39     ` Gui Jianfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BA895A3.4060807@redhat.com \
    --to=avi@redhat.com \
    --cc=guijianfeng@cn.fujitsu.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=sheng@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox