All of lore.kernel.org
 help / color / mirror / Atom feed
* Foreign VCPU register change?
@ 2012-08-23 17:25 Cutter 409
  2012-08-23 17:34 ` Keir Fraser
  0 siblings, 1 reply; 8+ messages in thread
From: Cutter 409 @ 2012-08-23 17:25 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 687 bytes --]

With Xen-4.1.2:

I'm trying to change a register value in a paused vmx vcpu. The general
process looks like this:

1. Some vmexit calls vcpu_sleep_nosync(v) on the vcpu
2. From dom0, I issue a domctl to change a register via
v->arch.guest_context.user_reg, then vcpu_wake(v)

However, the guest register does not seem to be changed when I do it this
way. Is there something I need to do to mark the registers as "dirty" ? Is
there a way to force the foreign vcpu to update the changed registers? Or
maybe I just have to change the registers somewhere else?

I've tried directly using vmcs_enter(v), __vmwrite(), vmcs_exit(v) also,
but that doesn't seem to make a change either.

Thanks!

[-- Attachment #1.2: Type: text/html, Size: 759 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2012-08-23 21:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23 17:25 Foreign VCPU register change? Cutter 409
2012-08-23 17:34 ` Keir Fraser
2012-08-23 17:37   ` Cutter 409
2012-08-23 17:49     ` Keir Fraser
2012-08-23 17:54       ` Keir Fraser
2012-08-23 18:11         ` Cutter 409
2012-08-23 18:55           ` Keir Fraser
2012-08-23 21:59             ` Cutter 409

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.