[PATCH qemu v2 0/2] ppc/spapr: Implement H_WATCHDOG

Alexey Kardashevskiy posted 2 patches 1 year, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220617060703.951747-1-aik@ozlabs.ru
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>
There is a newer version of this series
include/hw/pci-host/pnv_phb3_regs.h |  16 --
include/hw/ppc/spapr.h              |  29 +++-
target/ppc/cpu.h                    |   5 +
hw/intc/pnv_xive.c                  |  20 ---
hw/intc/pnv_xive2.c                 |  20 ---
hw/pci-host/pnv_phb4.c              |  16 --
hw/ppc/spapr.c                      |   4 +
hw/watchdog/spapr_watchdog.c        | 248 ++++++++++++++++++++++++++++
hw/watchdog/meson.build             |   1 +
hw/watchdog/trace-events            |   7 +
10 files changed, 293 insertions(+), 73 deletions(-)
create mode 100644 hw/watchdog/spapr_watchdog.c
[PATCH qemu v2 0/2] ppc/spapr: Implement H_WATCHDOG
Posted by Alexey Kardashevskiy 1 year, 11 months ago
This implements H_WATCHDOG. More detailed comments are in the patches.

This is based on sha1
96c343cc774b Joel Stanley "linux-user: Add PowerPC ISA 3.1 and MMA to hwcap".

Please comment. Thanks.



Alexey Kardashevskiy (2):
  ppc: Define SETFIELD for the ppc target
  ppc/spapr: Implement H_WATCHDOG

 include/hw/pci-host/pnv_phb3_regs.h |  16 --
 include/hw/ppc/spapr.h              |  29 +++-
 target/ppc/cpu.h                    |   5 +
 hw/intc/pnv_xive.c                  |  20 ---
 hw/intc/pnv_xive2.c                 |  20 ---
 hw/pci-host/pnv_phb4.c              |  16 --
 hw/ppc/spapr.c                      |   4 +
 hw/watchdog/spapr_watchdog.c        | 248 ++++++++++++++++++++++++++++
 hw/watchdog/meson.build             |   1 +
 hw/watchdog/trace-events            |   7 +
 10 files changed, 293 insertions(+), 73 deletions(-)
 create mode 100644 hw/watchdog/spapr_watchdog.c

-- 
2.30.2
Re: [PATCH qemu v2 0/2] ppc/spapr: Implement H_WATCHDOG
Posted by Daniel Henrique Barboza 1 year, 11 months ago

On 6/17/22 03:07, Alexey Kardashevskiy wrote:
> This implements H_WATCHDOG. More detailed comments are in the patches.
> 
> This is based on sha1
> 96c343cc774b Joel Stanley "linux-user: Add PowerPC ISA 3.1 and MMA to hwcap".
> 
> Please comment. Thanks.

This version worked with the kernel side patches you mentioned in patch 2/2,
thanks. Also tested migrating the guest with the WDT active and the guest
rebooted in the destination.


Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>


> 
> 
> 
> Alexey Kardashevskiy (2):
>    ppc: Define SETFIELD for the ppc target
>    ppc/spapr: Implement H_WATCHDOG
> 
>   include/hw/pci-host/pnv_phb3_regs.h |  16 --
>   include/hw/ppc/spapr.h              |  29 +++-
>   target/ppc/cpu.h                    |   5 +
>   hw/intc/pnv_xive.c                  |  20 ---
>   hw/intc/pnv_xive2.c                 |  20 ---
>   hw/pci-host/pnv_phb4.c              |  16 --
>   hw/ppc/spapr.c                      |   4 +
>   hw/watchdog/spapr_watchdog.c        | 248 ++++++++++++++++++++++++++++
>   hw/watchdog/meson.build             |   1 +
>   hw/watchdog/trace-events            |   7 +
>   10 files changed, 293 insertions(+), 73 deletions(-)
>   create mode 100644 hw/watchdog/spapr_watchdog.c
>