All of lore.kernel.org
 help / color / mirror / Atom feed
* vcpu_show_execution_state() difference between Arm and x86
@ 2021-09-01 13:39 Jan Beulich
  2021-09-01 18:11 ` Julien Grall
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2021-09-01 13:39 UTC (permalink / raw)
  To: Julien Grall, Stefano Stabellini, Andrew Cooper; +Cc: xen-devel

All,

back in 2016 Andrew added code to x86'es variant to avoid interleaving
of output. The same issue ought to exist on Arm. The lock acquired,
or more importantly the turning off of IRQs while doing so, is now
getting in the way of having PVH Dom0's state dumped the 2nd time. For
register state I did find a sufficiently simple (yet not pretty)
workaround. For the stack, where I can't reasonably avoid using p2m
functions, this is going to be more difficult.

Since I expect Arm to want to also have interleave protection at some
point, and since Arm also acquires the p2m lock while accessing Dom0's
stacks, I wonder whether anyone has any clever idea on how to avoid
the (valid) triggering of check_lock()'s assertion without intrusive
changes. (As to intrusive changes - acquiring the p2m lock up front in
recursive mode, plus silencing check_lock() for nested acquires of a
lock that's already being held by a CPU was my initial idea.)

Thanks, Jan



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

end of thread, other threads:[~2021-09-02 11:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 13:39 vcpu_show_execution_state() difference between Arm and x86 Jan Beulich
2021-09-01 18:11 ` Julien Grall
2021-09-02  6:45   ` Jan Beulich
2021-09-02 11:48     ` Julien Grall
2021-09-02 11:55       ` Jan Beulich

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.