From: Corneliu ZUZU Subject: [PATCH v2 0/7] Vm-events: move monitor vm-events code to common-side. Date: Wed, 10 Feb 2016 17:47:38 +0200 Message-ID: <1455119259-2161-1-git-send-email-czuzu@bitdefender.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@lists.xen.org Cc: Stefano Stabellini , Ian Campbell List-Id: xen-devel@lists.xenproject.org This patch series is an attempt to move (most) of the monitor vm-events code to the common-side. Patches summary: 1. Minor file-comment fix 2. Merge almost identical functions hvm_event_int3 + hvm_event_single_step -> hvm_event_breakpoint. 3. Add Kconfigs: HAS_VM_EVENT_WRITE_CTRLREG, HAS_VM_EVENT_SINGLESTEP, HAS_VM_EVENT_SOFTWARE_BREAKPOINT, HAS_VM_EVENT_GUEST_REQUEST and move monitor_domctl to common-side. Used the Kconfigs to selectively activate implemented monitor vm-events code for each architecture. 4. Minor file renames. Read (*) below. 5. Move hvm_event_traps, hvm_event_cr, hvm_event_guest_request, hvm_event_breakpoint functions to common-side. (note: arch_hvm_event_fill_regs on ARM-side will be implemented in a separate patch) 6. Minor file renames + comment fixes. Read (*) below. 7. Move arch_domain.monitor bitfield members to struct domain (common-side). Moved bits: single-step, software-breakpoint and guest-request. (note: write_ctrlreg_* were left on the arch-side, since control-registers number can vary across architectures) (*) was only necessary to avoid git seeing a file as being modified, rather than moved (would have made the diff unnecessarily bulky). --- Changed since v1: Major: * not moving arch/arm/hvm.c to arch/arm/hvm/hvm.c anymore * hvm_event_software_breakpoint renamed to hvm_event_breakpoint * hvm_event_breakpoint single_step param replaced by enum Minor: * formatting & comment fixes: e.g. removed blank lines around #if/#endif * improved code readability (used switch/case instead of if in some places)