Delivery Status Notification (Delay)
** Delivery incomplete **
There was a temporary problem delivering your message to [email protected]. Gmail will retry for 47 more hours. You'll be notified if the delivery fails permanently.
The response was:
Receive rate too high
-------------------------Blur-------------------------
This email is forwarded from a MASKED EMAIL you created using Blur. (https://dnt.abine.com/#help/faq/faq-whataremaskedemails).
IF THIS IS SPAM, CLICK HERE TO BLOCK:
https://dnt.abine.com/#/block_email/[email protected]/FWD-737QHYSMHVAYQAUCAOIQBDAAGAQLMA2YAMHECCJDLIBAYAWYAKIAZAQHSMCCWMBLIA4UANQUEIGCIMBKMAZUZ4AAEAACA===@opayq.com
Want to shop safely and privately online? Go Premium: https://dnt.abine.com/?pk_campaign=maskHeader#premium
-------------------------by Abine-------------------------
commit a39c6b4516996ae1e776a46743dbcb78002b9dd8
Author: Jan Beulich <[email protected]> AuthorDate: Wed Jun 7 11:36:30 2017 +0200 Commit: Jan Beulich <[email protected]> CommitDate: Wed Jun 7 11:36:30 2017 +0200
x86/NPT: deal with fallout from 2Mb/1Gb unmapping change
Commit efa9596e9d ("x86/mm: fix incorrect unmapping of 2MB and 1GB pages") left the NPT code untouched, as there is no explicit alignment check matching the one in EPT code. However, the now more widespread storing of INVALID_MFN into PTEs requires adjustments:
- calculations when shattering large pages may spill into the p2m type field (converting p2m_populate_on_demand to p2m_grant_map_rw) - use OR instead of PLUS,
- the use of plain l{2,3}e_from_pfn() in p2m_pt_set_entry() results in all upper (flag) bits being clobbered - introduce and use p2m_l{2,3}e_from_pfn(), paralleling the existing L1 variant.
master commit: 83520cb4aa39ebeb4eb1a7cac2e85b413e75a336 master date: 2017-06-06 14:32:54 +0200
--- xen/arch/x86/mm/p2m-pt.c | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-)
xen/arch/x86/mm/p2m-pt.c +12 -7
@@ -45,13 +45,20 @@#undef page_to_mfn#define page_to_mfn (_pg) _mfn(__page_to_mfn(_pg)) -/* We may store INVALID_MFN in l1 PTEs. We need to clip this -* to avoid trampling over higher-order bits (NX, p2m type, IOMMU flags). We -* seem to not need to unclip on the return path, as callers are concerned only -* with p2m type in such cases. +/* +* We may store INVALID_MFN in PTEs. We need to clip this to avoid trampling +* over higher-order bits (NX, p2m type, IOMMU flags). We seem to not need +* to unclip on the read path, as callers are concerned only with p2m type in +* such cases. */ #define p2m_l1e_from_pfn (pfn, flags) \ l1e_from_pfn((pfn) & (PADDR_MASK >> PAGE_SHIFT), (flags)) +#define p2m_l2e_from_pfn (pfn, flags) \ + l2e_from_pfn((pfn) & ((PADDR_MASK & ~(_PAGE_PSE_PAT | 0UL)) \ + >> PAGE_SHIFT), (flags) | _PAGE_PSE) +#define p2m_l3e_from_pfn (pfn, flags) \ + l3e_from_pfn((pfn) & ((PADDR_MASK & ~(_PAGE_PSE_PAT | 0UL)) \ + >> PAGE_SHIFT), (flags) | _PAGE_PSE)/* PTE flags for the various types of p2m entry */ #define P2M_BASE_FLAGS \
@@ -243,7 +250,7 @@ p2m_next_level(struct p2m_domain *p2m, void **table, l1_entry =__map_domain_page (pg);for ( i =0 ; i <L2_PAGETABLE_ENTRIES ; i++ ) { - new_entry =l1e_from_pfn (pfn + (i *L1_PAGETABLE_ENTRIES ), flags); + new_entry =l1e_from_pfn (pfn | (i *L1_PAGETABLE_ENTRIES ), flags);p2m_add_iommu_flags (&new_entry,1 , IOMMUF_readable|IOMMUF_writable); p2m->write_p2m_entry (p2m, gfn, l1_entry + i, new_entry,2 ); }
@@ -277,7 +284,7 @@ p2m_next_level(struct p2m_domain *p2m, void **table, l1_entry =__map_domain_page (pg);for ( i =0 ; i <L1_PAGETABLE_ENTRIES ; i++ ) { - ----- Message truncated -----
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel