[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] mem_event: Remove unused fields and definitions.
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1292005225 0 # Node ID 5b779981345fbf9c3b93e66f36fedb9e2a26ba93 # Parent 58f085f3df4aa32c5eb6ba2e1d6252727f49953f mem_event: Remove unused fields and definitions. Signed-off-by: Keir Fraser <keir@xxxxxxx> --- xen/arch/x86/mm/mem_sharing.c | 5 +---- xen/include/public/mem_event.h | 16 +--------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff -r 58f085f3df4a -r 5b779981345f xen/arch/x86/mm/mem_sharing.c --- a/xen/arch/x86/mm/mem_sharing.c Fri Dec 10 18:16:07 2010 +0000 +++ b/xen/arch/x86/mm/mem_sharing.c Fri Dec 10 18:20:25 2010 +0000 @@ -319,11 +319,10 @@ static struct page_info* mem_sharing_all vcpu_pause_nosync(v); req.flags |= MEM_EVENT_FLAG_VCPU_PAUSED; } - + /* XXX: Need to reserve a request, not just check the ring! */ if(mem_event_check_ring(d)) return page; - req.flags |= MEM_EVENT_FLAG_OUT_OF_MEM; req.gfn = gfn; req.p2mt = p2m_ram_shared; req.vcpu_id = v->vcpu_id; @@ -347,8 +346,6 @@ int mem_sharing_sharing_resume(struct do /* Unpause domain/vcpu */ if( rsp.flags & MEM_EVENT_FLAG_VCPU_PAUSED ) vcpu_unpause(d->vcpu[rsp.vcpu_id]); - if( rsp.flags & MEM_EVENT_FLAG_DOM_PAUSED ) - domain_unpause(d); return 0; } diff -r 58f085f3df4a -r 5b779981345f xen/include/public/mem_event.h --- a/xen/include/public/mem_event.h Fri Dec 10 18:16:07 2010 +0000 +++ b/xen/include/public/mem_event.h Fri Dec 10 18:20:25 2010 +0000 @@ -23,21 +23,11 @@ #ifndef _XEN_PUBLIC_MEM_EVENT_H #define _XEN_PUBLIC_MEM_EVENT_H - #include "xen.h" #include "io/ring.h" - -/* Memory event notification modes */ -#define MEM_EVENT_MODE_ASYNC 0 -#define MEM_EVENT_MODE_SYNC (1 << 0) -#define MEM_EVENT_MODE_SYNC_ALL (1 << 1) - /* Memory event flags */ #define MEM_EVENT_FLAG_VCPU_PAUSED (1 << 0) -#define MEM_EVENT_FLAG_DOM_PAUSED (1 << 1) -#define MEM_EVENT_FLAG_OUT_OF_MEM (1 << 2) - typedef struct mem_event_shared_page { uint32_t port; @@ -45,18 +35,14 @@ typedef struct mem_event_shared_page { typedef struct mem_event_st { uint64_t gfn; - uint64_t offset; uint32_t p2mt; - int32_t vcpu_id; + uint32_t vcpu_id; uint64_t flags; } mem_event_request_t, mem_event_response_t; - DEFINE_RING_TYPES(mem_event, mem_event_request_t, mem_event_response_t); - #endif - /* * Local variables: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |