From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKq8Q-0007kB-50 for qemu-devel@nongnu.org; Sun, 07 Oct 2012 08:39:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKq8O-0002oa-PP for qemu-devel@nongnu.org; Sun, 07 Oct 2012 08:39:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKq8O-0002oL-IF for qemu-devel@nongnu.org; Sun, 07 Oct 2012 08:39:04 -0400 From: Avi Kivity Date: Sun, 7 Oct 2012 14:38:18 +0200 Message-Id: <1349613508-22980-14-git-send-email-avi@redhat.com> In-Reply-To: <1349613508-22980-1-git-send-email-avi@redhat.com> References: <1349613508-22980-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH v1 13/23] xen: use new MEMORY_LISTENER_DEFAULT_OPS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Anthony Liguori , liu ping fan , "Michael S. Tsirkin" , Paolo Bonzini , Blue Swirl Removes quite a bit of useless code. Signed-off-by: Avi Kivity --- xen-all.c | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/xen-all.c b/xen-all.c index f76b051..823e043 100644 --- a/xen-all.c +++ b/xen-all.c @@ -452,14 +452,6 @@ static void xen_set_memory(struct MemoryListener *listener, } } -static void xen_begin(MemoryListener *listener) -{ -} - -static void xen_commit(MemoryListener *listener) -{ -} - static void xen_region_add(MemoryListener *listener, MemoryRegionSection *section) { @@ -472,11 +464,6 @@ static void xen_region_del(MemoryListener *listener, xen_set_memory(listener, section, false); } -static void xen_region_nop(MemoryListener *listener, - MemoryRegionSection *section) -{ -} - static void xen_sync_dirty_bitmap(XenIOState *state, target_phys_addr_t start_addr, ram_addr_t size) @@ -550,41 +537,13 @@ static void xen_log_sync(MemoryListener *listener, MemoryRegionSection *section) section->size); } -static void xen_log_global_start(MemoryListener *listener) -{ -} - -static void xen_log_global_stop(MemoryListener *listener) -{ -} - -static void xen_eventfd_add(MemoryListener *listener, - MemoryRegionSection *section, - bool match_data, uint64_t data, - EventNotifier *e) -{ -} - -static void xen_eventfd_del(MemoryListener *listener, - MemoryRegionSection *section, - bool match_data, uint64_t data, - EventNotifier *e) -{ -} - static MemoryListener xen_memory_listener = { - .begin = xen_begin, - .commit = xen_commit, + MEMORY_LISTENER_DEFAULT_OPS, .region_add = xen_region_add, .region_del = xen_region_del, - .region_nop = xen_region_nop, .log_start = xen_log_start, .log_stop = xen_log_stop, .log_sync = xen_log_sync, - .log_global_start = xen_log_global_start, - .log_global_stop = xen_log_global_stop, - .eventfd_add = xen_eventfd_add, - .eventfd_del = xen_eventfd_del, .priority = 10, }; -- 1.7.12