xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Introspection optimization helpers
@ 2015-09-21 13:31 Razvan Cojocaru
  2015-09-21 13:31 ` [PATCH V2 1/2] xen, libxc: Fine grained control of REP emulation optimizations Razvan Cojocaru
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Razvan Cojocaru @ 2015-09-21 13:31 UTC (permalink / raw)
  To: xen-devel
  Cc: tamas, keir, ian.campbell, andrew.cooper3, ian.jackson,
	stefano.stabellini, stefano.stabellini, jbeulich, wei.liu2

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-09-25 15:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 13:31 [PATCH V2 0/2] Introspection optimization helpers Razvan Cojocaru
2015-09-21 13:31 ` [PATCH V2 1/2] xen, libxc: Fine grained control of REP emulation optimizations Razvan Cojocaru
2015-09-22 15:17   ` Jan Beulich
2015-09-22 15:28     ` Razvan Cojocaru
2015-09-22 15:39       ` Jan Beulich
2015-09-22 15:41         ` Razvan Cojocaru
2015-09-25 15:34   ` Ian Campbell
2015-09-21 13:31 ` [PATCH V2 2/2] xen: Introduce VM_EVENT_FLAG_SET_REGISTERS Razvan Cojocaru
2015-09-22 15:19   ` Jan Beulich
2015-09-22 15:34     ` Tamas K Lengyel
2015-09-22 15:39       ` Razvan Cojocaru
2015-09-22 15:35     ` Razvan Cojocaru
2015-09-22 15:39       ` Tamas K Lengyel
2015-09-21 13:58 ` [PATCH V2 0/2] Introspection optimization helpers Razvan Cojocaru
2015-09-21 14:52   ` Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).