Skip to contentSkip to conversation

pvpanic: Advertise the PVPANIC_CRASHLOADED event support

PATCH Applied Alejandro Jimenez 3 participants 4 messages Nov 2, 2020 – Nov 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pvpanic: Advertise the PVPANIC_CRASHLOADED event support

Advertise both types of events supported when the guest OS queries the pvpanic device. Currently only PVPANIC_PANICKED is exposed; PVPANIC_CRASHLOADED must also be advertised.

Fixes 7dc58deea79a ("pvpanic: implement crashloaded event handling")
---
 hw/misc/pvpanic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/misc/pvpanic.c +1 -1
index 598d547..a55ce8e 100644
@@ -66,7 +66,7 @@ struct PVPanicState {
 /* return supported events on read */
 static uint64_t pvpanic_ioport_read(void *opaque, hwaddr addr, unsigned size)
 {
-    return PVPANIC_PANICKED;
+    return PVPANIC_PANICKED | PVPANIC_CRASHLOADED;
 }
 
 static void pvpanic_ioport_write(void *opaque, hwaddr addr, uint64_t val,
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw

Hi, Paolo

This patch seems getting ignored. Because no maintainers found for hw/misc/pvpanic.c, I also send this to you(hope it doesn't disturb you).

About this patch:
Looks good. And also test it, works fine.

Quoted 25 lines · Alejandro Jimenez

Advertise both types of events supported when the guest OS queries the pvpanic device. Currently only PVPANIC_PANICKED is exposed; PVPANIC_CRASHLOADED must also be advertised.

Fixes 7dc58deea79a ("pvpanic: implement crashloaded event handling")
---
  hw/misc/pvpanic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/misc/pvpanic.c +1 -1
index 598d547..a55ce8e 100644
@@ -66,7 +66,7 @@ struct PVPanicState {
  /* return supported events on read */
  static uint64_t pvpanic_ioport_read(void *opaque, hwaddr addr, unsigned size)
  {
-    return PVPANIC_PANICKED;
+    return PVPANIC_PANICKED | PVPANIC_CRASHLOADED;
  }
 
  static void pvpanic_ioport_write(void *opaque, hwaddr addr, uint64_t val,
Signature · 1 line
zhenwei pi
#2 lore raw
Quoted 3 lines · zhenwei pi

Hi, Paolo

This patch seems getting ignored. Because no maintainers found for hw/misc/pvpanic.c, I also send this to you(hope it doesn't disturb you).

Actually it needs compat stuff for old machine types. I'll send v2.

#3 lore raw
In reply to zhenwei pi
Quoted 22 lines · zhenwei pi

Hi, Paolo

This patch seems getting ignored. Because no maintainers found for hw/misc/pvpanic.c, I also send this to you(hope it doesn't disturb you).

About this patch:
Looks good. And also test it, works fine.

Quoted 11 lines · Alejandro Jimenez

Advertise both types of events supported when the guest OS queries the pvpanic device. Currently only PVPANIC_PANICKED is exposed; PVPANIC_CRASHLOADED must also be advertised.

Fixes 7dc58deea79a ("pvpanic: implement crashloaded event handling")

---
  hw/misc/pvpanic.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

hw/misc/pvpanic.c struct PVPanicState { · line 72

Quoted 13 lines
hw/misc/pvpanic.c +1 -1
index 598d547..a55ce8e 100644
@@ -66,7 +66,7 @@ struct PVPanicState {
   /* return supported events on read */
   static uint64_t pvpanic_ioport_read(void *opaque, hwaddr addr, unsigned size)
   {
-    return PVPANIC_PANICKED;
+    return PVPANIC_PANICKED | PVPANIC_CRASHLOADED;
   }
   static void pvpanic_ioport_write(void *opaque, hwaddr addr, uint64_t val,
 

Queued now, thanks Zhenwei.

Paolo