All of lore.kernel.org
 help / color / mirror / Atom feed
* How to use shadow page in KVM?
@ 2015-03-08  8:54 Taowei Luo
  2015-03-08 12:46 ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Taowei Luo @ 2015-03-08  8:54 UTC (permalink / raw)
  To: kvm

Hello everyone!

I am trying to make a comparison between several paging modes in
virtualization. (hardware assisted paging and shadow paging
especially)

But just failed on using shadow page in virtual machines managed by KVM.

In my experiments, HAP is used by default. It can't be disabled or
switches to shadow page by simply removing the kvm-intel module or
calling kvm_disable_tdp(). So I am asking for help and suggestions.

Regards,

Taowei.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to use shadow page in KVM?
  2015-03-08  8:54 How to use shadow page in KVM? Taowei Luo
@ 2015-03-08 12:46 ` Paolo Bonzini
  2015-03-09  2:06   ` Taowei Luo
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2015-03-08 12:46 UTC (permalink / raw)
  To: Taowei Luo, kvm



On 08/03/2015 09:54, Taowei Luo wrote:
> Hello everyone!
> 
> I am trying to make a comparison between several paging modes in
> virtualization. (hardware assisted paging and shadow paging
> especially)
> 
> But just failed on using shadow page in virtual machines managed by KVM.
> 
> In my experiments, HAP is used by default. It can't be disabled or
> switches to shadow page by simply removing the kvm-intel module or
> calling kvm_disable_tdp(). So I am asking for help and suggestions.

Load the kvm-intel module with the ept=0 parameter.

Paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to use shadow page in KVM?
  2015-03-08 12:46 ` Paolo Bonzini
@ 2015-03-09  2:06   ` Taowei Luo
  0 siblings, 0 replies; 3+ messages in thread
From: Taowei Luo @ 2015-03-09  2:06 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: kvm

Thank you! It works for me.

soft_mmu is working after I add kvm-intel.ept=0 in kernel cmd line.

2015-03-08 20:46 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
>
>
> On 08/03/2015 09:54, Taowei Luo wrote:
>> Hello everyone!
>>
>> I am trying to make a comparison between several paging modes in
>> virtualization. (hardware assisted paging and shadow paging
>> especially)
>>
>> But just failed on using shadow page in virtual machines managed by KVM.
>>
>> In my experiments, HAP is used by default. It can't be disabled or
>> switches to shadow page by simply removing the kvm-intel module or
>> calling kvm_disable_tdp(). So I am asking for help and suggestions.
>
> Load the kvm-intel module with the ept=0 parameter.
>
> Paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-09  2:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-08  8:54 How to use shadow page in KVM? Taowei Luo
2015-03-08 12:46 ` Paolo Bonzini
2015-03-09  2:06   ` Taowei Luo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.