From: Andrew Cooper Subject: [PATCH v2 0/3] Improvements to allow refcoutning of DOMCTL_{, un}pausedomain Date: Wed, 2 Jul 2014 14:47:48 +0100 Message-ID: <1404308871-23368-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper List-Id: xen-devel@lists.xenproject.org The first patch has no functional change, but introduces a common atomic.h The second patch introduces new common atomic_t manipulation function The third patch uses these new common functions as a basis for fixing the DOMCTL_{,un}pausedomain reference counting issues. This has been functionally tested on x86, and compile tested on both flavours of ARM. Andrew Cooper (3): xen/atomic: Introduce common atomic header and update includes xen/atomic: Implement atomic_{inc,dec}_bounded() xen/common: Properly reference count DOMCTL_{,un}pausedomain hypercalls xen/arch/x86/apic.c | 2 +- xen/arch/x86/cpu/mcheck/barrier.h | 2 +- xen/arch/x86/cpu/mcheck/mce.h | 2 +- xen/arch/x86/crash.c | 2 +- xen/arch/x86/domctl.c | 7 +++--- xen/arch/x86/i8259.c | 2 +- xen/arch/x86/mm/mem_sharing.c | 2 +- xen/arch/x86/mm/shadow/private.h | 2 +- xen/arch/x86/traps.c | 2 +- xen/common/Makefile | 1 + xen/common/atomic.c | 35 ++++++++++++++++++++++++++++++ xen/common/domain.c | 41 ++++++++++++++++++++--------------- xen/common/domctl.c | 9 ++++---- xen/common/kexec.c | 2 +- xen/common/rcupdate.c | 2 +- xen/common/sched_credit.c | 2 +- xen/common/spinlock.c | 2 +- xen/common/timer.c | 2 +- xen/common/trace.c | 2 +- xen/drivers/passthrough/arm/smmu.c | 2 +- xen/include/acpi/platform/aclinux.h | 2 +- xen/include/asm-x86/atomic.h | 5 +++++ xen/include/asm-x86/irq.h | 2 +- xen/include/asm-x86/spinlock.h | 2 +- xen/include/xen/atomic.h | 26 ++++++++++++++++++++++ xen/include/xen/gdbstub.h | 2 +- xen/include/xen/sched.h | 17 +++++++++++---- xen/xsm/flask/avc.c | 2 +- 28 files changed, 132 insertions(+), 49 deletions(-) create mode 100644 xen/common/atomic.c create mode 100644 xen/include/xen/atomic.h -- 1.7.10.4