qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ppc: add support for Directed Privileged Doorbell (non-hypervisor)
@ 2020-01-09 16:33 Cédric Le Goater
  2020-01-09 16:33 ` [PATCH 1/2] target/ppc: Add privileged message send facilities Cédric Le Goater
  2020-01-09 16:33 ` [PATCH 2/2] target/ppc: add support for Hypervisor Facility Unavailable Exception Cédric Le Goater
  0 siblings, 2 replies; 6+ messages in thread
From: Cédric Le Goater @ 2020-01-09 16:33 UTC (permalink / raw)
  To: David Gibson; +Cc: Cédric Le Goater, qemu-ppc, Greg Kurz, qemu-devel

Hello,

The Processor Control facility POWER8 processors and later provides a
mechanism for the hypervisor to send messages to other threads in the
system (msgsnd instruction) and cause hypervisor-level exceptions.

Privileged non-hypervisor programs can also send messages (msgsndp
instruction) but are restricted to the threads of the same
subprocessor and cause privileged-level exceptions. The Directed
Privileged Doorbell Exception State (DPDES) register reflects the
state of pending privileged-level doorbell exceptions for all threads
and can be used to modify that state.

If the MSGP facility is not in the HFSCR, a hypervisor facility
unavailable exception is generated when these instructions are used or
when the DPDES register is accessed by the supervisor.

Based on previous work from Suraj Jitindar Singh. I took ownership due
to the amount of changes.

Thanks,
 
C.

Cédric Le Goater (2):
  target/ppc: Add privileged message send facilities
  target/ppc: add support for Hypervisor Facility Unavailable Exception

 target/ppc/cpu.h                |  7 +++
 target/ppc/helper.h             |  4 ++
 target/ppc/excp_helper.c        | 81 ++++++++++++++++++++++++++++-----
 target/ppc/misc_helper.c        | 63 +++++++++++++++++++++++++
 target/ppc/translate.c          | 26 +++++++++++
 target/ppc/translate_init.inc.c | 20 ++++++--
 6 files changed, 186 insertions(+), 15 deletions(-)

-- 
2.21.1



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

end of thread, other threads:[~2020-01-17 12:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-09 16:33 [PATCH 0/2] ppc: add support for Directed Privileged Doorbell (non-hypervisor) Cédric Le Goater
2020-01-09 16:33 ` [PATCH 1/2] target/ppc: Add privileged message send facilities Cédric Le Goater
2020-01-17  9:46   ` David Gibson
2020-01-17 12:42     ` Cédric Le Goater
2020-01-09 16:33 ` [PATCH 2/2] target/ppc: add support for Hypervisor Facility Unavailable Exception Cédric Le Goater
2020-01-17  9:49   ` David Gibson

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).