[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RESEND][PATCH 5/5]MTRR/PAT virtualization


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Su, Disheng" <disheng.su@xxxxxxxxx>
  • Date: Wed, 17 Oct 2007 16:45:41 +0800
  • Delivery-date: Wed, 17 Oct 2007 01:47:11 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcgQmhkEL6J0p3KpR26/UYCURgEVdg==
  • Thread-topic: [RESEND][PATCH 5/5]MTRR/PAT virtualization

When guest changes MTRR/PAT, must flush cache and destroy shadow page
table in xen. This can be done in do_msr_write when guest changes
MTRR/PAT related MSRs. But there is a window that MTRR/PAT is different
between VCPUs when changing MTRR/PAT, it may bring some troubles or
incorrect. So we try another way to do it: 
        The guest will enter no-fill cache mode(set CR0:CD/NW) befor
changing MTRR/PAT, then update MTRR/PAT and exit no-fill mode. We
intercept the changing of cache mode. If one of vcpu is in no-fill mode
or MTRR/PAT is different between vcpus, set shadow pte as UC. When all
the vcpus exit from no-fill mode, and MTRR/PAT is the same between
vcpus, set shadow pte as usual.

Best Regards,
Disheng, Su

Attachment: mtrr_05_no_fill_mode.patch
Description: mtrr_05_no_fill_mode.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.