xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0 of 3] Fixes for paging/sharing with AMD processors
@ 2012-03-21 19:22 Andres Lagar-Cavilla
  2012-03-21 19:22 ` [PATCH 1 of 3] IOMMU: Add command line param to disable sharing of IOMMU and hap tables Andres Lagar-Cavilla
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Andres Lagar-Cavilla @ 2012-03-21 19:22 UTC (permalink / raw)
  To: xen-devel; +Cc: olaf, keir, andres, tim, wei.wang2, hongkaixing, adin

These are patches previously posted as RFC towards making paging and sharing
work for AMD NPT.

They are now ready for inclusion in the tree. They do not yet completely fix
paging in AMD, but each fixes an existing bug:

- Add "no-sharept" cli to allow disabling of sharing of iommu and p2m tables.
- Mask high order bits when installing INVALID_MFN on a pte, so those bits
don't trample over flags such as _PAGE_NX. I've used a suggestion from Tim
Deegan in this patch, so I took the liberty of adding his SoB.
- Teach paging to the page table-based p2m (p2m-pt). This involves fixing a few
if's and ASSERT's.

They've been tested to not break existing modes (shadow, AMD hap, dom0 as test
for pv domains)

Signed-off-by: Andres Lagar-Cavilla<andres@lagarcavilla.org>
Signed-off-by: Tim Deegan <tim@xen.org>

 xen/drivers/passthrough/iommu.c |   2 ++
 xen/include/asm-x86/page.h      |  12 ++++++++----
 xen/arch/x86/mm/p2m-pt.c        |  30 +++++++++++++++++++-----------
 3 files changed, 29 insertions(+), 15 deletions(-)

^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH 0 of 3] RFC Paging support for AMD NPT V2
@ 2012-03-01  3:15 Andres Lagar-Cavilla
  2012-03-01  3:15 ` [PATCH 1 of 3] IOMMU: Add command line param to disable sharing of IOMMU and hap tables Andres Lagar-Cavilla
  0 siblings, 1 reply; 22+ messages in thread
From: Andres Lagar-Cavilla @ 2012-03-01  3:15 UTC (permalink / raw)
  To: xen-devel; +Cc: olaf, andres, tim, wei.wang2, hongkaixing, adin

There has been some progress, but still no joy. Definitely not intended for
inclusion at this point.

Tim, Wei, I added a Xen command line toggle to disable IOMMU and P2M table
sharing.

Tim, I verified that changes to p2m-pt.c don't break shadow mode (64bit
hypervisor and Win 7 guest).

Hongkaixing, I incorporated your suggestion in patch 2, so I should add your
Signed-off-by eventually. Please review.

Olaf, I do not see errors when mapping pages prior to eviction. Let me know how
it goes for you.

If I unleash xenpaging on a domain for a non-ambitious target (64 MiBs paged
out for one minute), we sail by just fine. But if I kick things up a notch,
still dying on an VMEXIT_SHUTDOWN (a.k.a. triple fault). Not sure at all what
to do next. 

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Signed-off-by: Adin Scannell <adin@scannell.ca>

 xen/drivers/passthrough/iommu.c |   2 +
 xen/arch/x86/mm/p2m-pt.c        |  56 ++++++++++++++++++++++++++++------------
 xen/arch/x86/mm/mem_event.c     |   7 +++-
 xen/arch/x86/mm/mem_sharing.c   |   7 +++++
 4 files changed, 53 insertions(+), 19 deletions(-)

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

end of thread, other threads:[~2012-03-29 15:05 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-21 19:22 [PATCH 0 of 3] Fixes for paging/sharing with AMD processors Andres Lagar-Cavilla
2012-03-21 19:22 ` [PATCH 1 of 3] IOMMU: Add command line param to disable sharing of IOMMU and hap tables Andres Lagar-Cavilla
2012-03-22  9:17   ` Jan Beulich
2012-03-22 10:44     ` Tim Deegan
2012-03-22 10:57       ` Jan Beulich
2012-03-22 11:03         ` Tim Deegan
2012-03-27 15:19           ` Andres Lagar-Cavilla
2012-03-29 10:27             ` Tim Deegan
2012-03-29 10:57               ` Keir Fraser
2012-03-29 11:09                 ` Tim Deegan
2012-03-29 15:05               ` Jan Beulich
2012-03-21 19:22 ` [PATCH 2 of 3] Clip mfn to allowable width when building a PTE Andres Lagar-Cavilla
2012-03-22  9:18   ` Jan Beulich
2012-03-22 10:50     ` Tim Deegan
2012-03-22 11:02       ` Jan Beulich
2012-03-22 14:54         ` Andres Lagar-Cavilla
2012-03-22 15:31           ` Jan Beulich
2012-03-27 15:21             ` Andres Lagar-Cavilla
2012-03-21 19:23 ` [PATCH 3 of 3] x86/mm: Teach paging to page table-based p2m Andres Lagar-Cavilla
2012-03-22 10:55   ` Tim Deegan
2012-03-22 14:47     ` Andres Lagar-Cavilla
  -- strict thread matches above, loose matches on Subject: below --
2012-03-01  3:15 [PATCH 0 of 3] RFC Paging support for AMD NPT V2 Andres Lagar-Cavilla
2012-03-01  3:15 ` [PATCH 1 of 3] IOMMU: Add command line param to disable sharing of IOMMU and hap tables Andres Lagar-Cavilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).