Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
xen
19555-ept-live-migration.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 19555-ept-live-migration.patch of Package xen
# HG changeset patch # User Keir Fraser <keir.fraser@citrix.com> # Date 1239970026 -3600 # Node ID 150662e5adfc9a8f95329f037432d76a92247aae # Parent b920a2f799d960c492eefcedde0fde1e7793e7df x86: avoid EPT scanning errors when splitting superpages during live migration Since Xen did not lock the p2m table for p2m table reading, when splitting the large page during live migration, we should make sure the path of EPT entries be modified are always there while other CPUs may access the super entries at the same time. Signed-off-by: Xin, Xiaohui <xiaohui.xin@intel.com> --- a/xen/arch/x86/mm/hap/p2m-ept.c +++ b/xen/arch/x86/mm/hap/p2m-ept.c @@ -200,17 +200,18 @@ _ept_set_entry(struct domain *d, unsigne ept_entry_t *split_ept_entry = NULL; unsigned long split_mfn = ept_entry->mfn; p2m_type_t split_p2mt = ept_entry->avail1; + ept_entry_t new_ept_entry; /* alloc new page for new ept middle level entry which is * before a leaf super entry */ - if ( !ept_set_middle_entry(d, ept_entry) ) + if ( !ept_set_middle_entry(d, &new_ept_entry) ) goto out; /* split the super page before to 4k pages */ - split_table = map_domain_page(ept_entry->mfn); + split_table = map_domain_page(new_ept_entry.mfn); offset = gfn & ((1 << EPT_TABLE_ORDER) - 1); for ( i = 0; i < 512; i++ ) @@ -244,6 +245,7 @@ _ept_set_entry(struct domain *d, unsigne ept_p2m_type_to_flags(split_ept_entry, p2mt); unmap_domain_page(split_table); + *ept_entry = new_ept_entry; } /* Track the highest gfn for which we have ever had a valid mapping */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor