search for: gnttab_release_map

Displaying 7 results from an estimated 7 matches for "gnttab_release_map".

2007 Mar 15
0
[PATCH] Add two arch hooks to gnttab_release_mappings()
Add two arch hooks to gnttab_release_mappings(). The c/s 8409:b3edbeea3e79 changed gnttab_release_mappings() such that it doesn''t put page/type reference count because it is done implicitly when page table is destructed. It is x86 specific issue and it isn''t the case for ia64 and powerpc. Introduce two arch hook to addre...
2007 Oct 03
0
[PATCH 3/3] TLB flushing and IO memory mapping
...@@ -499,7 +528,7 @@ __gnttab_unmap_common( act->pin -= GNTPIN_hstr_inc; else act->pin -= GNTPIN_hstw_inc; - } + } /* If just unmapped a writable mapping, mark as dirtied */ if ( !(op->flags & GNTMAP_readonly) ) @@ -1538,6 +1567,7 @@ gnttab_release_mappings( struct domain *rd; struct active_grant_entry *act; struct grant_entry *sha; + int rc; BUG_ON(!d->is_dying); @@ -1595,7 +1625,12 @@ gnttab_release_mappings( { BUG_ON(!(act->pin & GNTPIN_hstw_mask)); ac...
2012 May 25
0
[PATCH 3/3] gnttab: cleanup
...status_entry(d->grant_table, ref_b) = status; + shared_entry_v2(gt, ref_b) = shared; + status_entry(gt, ref_b) = status; } out: - spin_unlock(&d->grant_table->lock); + spin_unlock(&gt->lock); rcu_unlock_domain(d); @@ -2632,7 +2627,7 @@ void gnttab_release_mappings( struct domain *d) { - struct grant_table *gt = d->grant_table; + struct grant_table *gt = d->grant_table, *rgt; struct grant_mapping *map; grant_ref_t ref; grant_handle_t handle; @@ -2664,14 +2659,15 @@ gnttab_release_mappings(...
2007 Aug 28
6
[PATCH] Make XEN_DOMCTL_destroydomain hypercall continuable.
...8,26 +298,37 @@ struct domain *rcu_lock_domain_by_id(dom } -void domain_kill(struct domain *d) -{ - domain_pause(d); - - /* Already dying? Then bail. */ - if ( test_and_set_bool(d->is_dying) ) - { - domain_unpause(d); - return; - } - - evtchn_destroy(d); - gnttab_release_mappings(d); - domain_relinquish_resources(d); - put_domain(d); - - /* Kick page scrubbing after domain_relinquish_resources(). */ - page_scrub_kick(); - - send_guest_global_virq(dom0, VIRQ_DOM_EXC); +int domain_kill(struct domain *d) +{ + int rc = 0; + + if ( d == current->doma...
2006 Feb 14
1
implicit grant unmap
Hello All, I''m contemplating ways to avoid the domain_crash() in mm.c line ~615 without requiring new OS hooks. This crash occurs when the operating system writes a zero to the PTE for a grant mapping without an explicit Xen call to unmap. In hacking around, it seems the problem is this: When the mapping PTE gets squashed, Xen''s cleanup_writable_pagetable() has no way to find
2006 Aug 03
3
RE: [Patch][RFC] Support "xm dump" (is Re: Re: [Patch]Enable "sysrq c" handler for domU coredump)
Two things: 1. I''m not convinced ''xm crash'' is needed - ''xm destroy'' will do this (and if you want a dump, do ''xm dump'' followed by ''xm destroy'') 2. I don''t see the point of the --noreboot option on ''xm dump'' -- I think this command should simply live-dump the specified domain - as
2012 Nov 15
1
[RFC/PATCH v4] XENMEM_claim_pages (subop of existing) hypercall
...e, &d->page_list); spin_unlock(&d->page_alloc_lock); diff --git a/xen/common/domain.c b/xen/common/domain.c index 0e3e36a..95509e2 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -492,6 +492,7 @@ int domain_kill(struct domain *d) evtchn_destroy(d); gnttab_release_mappings(d); tmem_destroy(d->tmem); + domain_set_unclaimed_pages(d, 0, 0); d->tmem = NULL; /* fallthrough */ case DOMDYING_dying: diff --git a/xen/common/domctl.c b/xen/common/domctl.c index e153cb4..19e3930 100644 --- a/xen/common/domctl.c +++ b/xen/common/...