From: Avi Kivity <avi@qumranet.com>
To: Zhao Forrest <forrest.zhao@gmail.com>
Cc: kvm-devel@lists.sourceforge.net, Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: [PATCH 8/8] x86: KVM guest: VMX cr3 cache support
Date: Thu, 06 Mar 2008 11:32:16 +0200 [thread overview]
Message-ID: <47CFBA20.7050204@qumranet.com> (raw)
In-Reply-To: <ac8af0be0803060117v60f2edb3k51f71de57a144657@mail.gmail.com>
Zhao Forrest wrote:
>> * We only need to hook operations that are MMU writes. We hook these so
>> that
>> * we can use lazy MMU mode to batch these operations. We could probably
>> * improve the performance of the host code if we used some of the
>> information
>> @@ -219,6 +359,9 @@ static void paravirt_ops_setup(void)
>> pv_mmu_ops.lazy_mode.enter = kvm_enter_lazy_mmu;
>> pv_mmu_ops.lazy_mode.leave = kvm_leave_lazy_mmu;
>> }
>> +
>> + if (kvm_para_has_feature(KVM_FEATURE_CR3_CACHE))
>>
> Here guest OS calls cpuid() to know if KVM_FEATURE_CR3_CACHE is
> supported by KVM, so I think that the kernel counterpart of this
> patch(i.e. [kvm-devel] [PATCH 7/8] KVM: MMU: VMX cr3 cache support)
> should include the code to intercept cpuid trap and set
> KVM_FEATURE_CR3_CACHE. But I didn't find such code in [PATCH 7/8] KVM:
> MMU: VMX cr3 cache support. Do I miss anything relevant?
>
>
Userspace sets the cpuid information; this allows, for example, command
line switches to hide paravirtualization support.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
prev parent reply other threads:[~2008-03-06 9:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-02 16:31 [PATCH 8/8] x86: KVM guest: VMX cr3 cache support Avi Kivity
2008-03-06 9:17 ` Zhao Forrest
2008-03-06 9:32 ` Avi Kivity [this message]
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=47CFBA20.7050204@qumranet.com \
--to=avi@qumranet.com \
--cc=forrest.zhao@gmail.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=mtosatti@redhat.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