lkml.org 
[lkml]   [2008]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [kvm-devel] [PATCH 8/8] SVM: add support for Nested Paging
Joerg Roedel wrote:
>> On the other hand, we want to trap cr0 so the guest can't control the
>> cache disable bits. Also cr4.pce and cr4.mce.
>>
>
> Is it a problem when the guest disables caching? It disables it only in
> its own context because it has its own copy of cr0.

Some Intel processors have a mode where cache coherency is no longer
preserved, and we need to prevent that. However from my reading of the
AMD manuals, cache coherency is preserved even with caching disabled, so
no real issue with disabling the cache.


> Cr4.pce can be
> accessible for the guests because there is no way for them to access the
> performance counter MSRs.

Yes. This was a red herring, cr0.pce only affects userspace rdpmc.

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



\
 
 \ /
  Last update: 2008-01-27 11:27    [W:0.058 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site