gnttab: don't use domain lock for serialization
PATCH 1/3 gnttab: don't use domain lock for serialization
Instead use the affected domain's grant table lock, at once reducing the scopes during which locks are being held and hence allowing significantly better parallelism.
Signed-off-by Jan Beulich <[email protected]>
Tested-by Andrew Thomas <[email protected]>
xen/arch/x86/mm.c +0 -4
@@ -3727,8 +3727,6 @@ static int create_grant_pte_mapping(l1_pgentry_t ol1e;struct domain *d = v->domain; -ASSERT (domain_is_locked (d)); -adjust_guest_l1e (nl1e, d); gmfn = pte_addr >>PAGE_SHIFT ;
@@ -3855,8 +3853,6 @@ static int create_grant_va_mapping(struct page_info *l1pg;int okay; -ASSERT (domain_is_locked (d)); -adjust_guest_l1e (nl1e, d); pl1e =guest_map_l1e (v, va, &gl1mfn);
xen/common/grant_table.c +79 -52
273 lines not on this page · raw message
gnttab: don't use domain lock for serialization
Instead use the affected domain's grant table lock, at once reducing the scopes during which locks are being held and hence allowing significantly better parallelism.
Signed-off-by Jan Beulich <[email protected]>
Tested-by Andrew Thomas <[email protected]>
xen/arch/x86/mm.c +0 -4
@@ -3727,8 +3727,6 @@ static int create_grant_pte_mapping(l1_pgentry_t ol1e;struct domain *d = v->domain; -ASSERT (domain_is_locked (d)); -adjust_guest_l1e (nl1e, d); gmfn = pte_addr >>PAGE_SHIFT ;
@@ -3855,8 +3853,6 @@ static int create_grant_va_mapping(struct page_info *l1pg;int okay; -ASSERT (domain_is_locked (d)); -adjust_guest_l1e (nl1e, d); pl1e =guest_map_l1e (v, va, &gl1mfn);
xen/common/grant_table.c +79 -52
273 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel