From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Cojocaru Subject: [PATCH V2 0/2] Introspection optimization helpers Date: Mon, 21 Sep 2015 16:31:32 +0300 Message-ID: <1442842294-6123-1-git-send-email-rcojocaru@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: tamas@tklengyel.com, keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.co, stefano.stabellini@citrix.com, jbeulich@suse.com, wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org Hello, This series adds two minor patches. The first one allows finer-grained control over the emulation behaviour of REP instructions. Previously, once vm_event-based emulation was enabled, no optimizations were allowed. However, this has a performance impact on the monitored guest, so I've added a new libxc function to enable / disable this at will at any point. The second patch addresses an older issue: in my initial series a few years back, there was a (longish) patch that computed the length of the current instruction, and advanced the instruction pointer past it if it was required by the vm_event reply. However, integrating that code has not been trivial, and so the second patch in this series simply allows a vm_event reply to say that the instruction pointer should be set to whatever value it sends back to the hypervisor. This way, the computation of the instruction length is left to the userspace application. This new version addresses the comments received for V1: the first patch retires xc_domain_emulate_each_rep() in favour of xc_monitor_emulate_each_rep(), and the second patch now follows Tamas' suggestion to replace SET_EIP with SET_REGISTERS and allow any vm_event reply to set the guest registers (though this currently only applies to EIP). [PATCH V2 1/2] xen, libxc: Fine grained control of REP emulation [PATCH V2 2/2] xen: Introduce VM_EVENT_FLAG_SET_REGISTERS Thanks, Razvan