[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered
From: |
Nicholas Piggin |
Subject: |
[Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests |
Date: |
Thu, 20 Oct 2016 17:59:11 +1100 |
Signed-off-by: Nicholas Piggin <address@hidden>
---
target-ppc/excp_helper.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c
index 53c4075..477af10 100644
--- a/target-ppc/excp_helper.c
+++ b/target-ppc/excp_helper.c
@@ -390,9 +390,13 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int
excp_model, int excp)
/* indicate that we resumed from power save mode */
msr |= 0x10000;
new_msr |= ((target_ulong)1 << MSR_ME);
+ new_msr |= (target_ulong)MSR_HVB;
+ } else {
+ /* The ISA specifies the HV bit is set when the hardware interrupt
+ * is raised, however when hypervisors deliver the exception to
+ * guests, it should not be set.
+ */
}
-
- new_msr |= (target_ulong)MSR_HVB;
ail = 0;
break;
case POWERPC_EXCP_DSEG: /* Data segment exception */
--
2.9.3
- [Qemu-ppc] (no subject), Nicholas Piggin, 2016/10/20
- [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests,
Nicholas Piggin <=
- Re: [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests, Cédric Le Goater, 2016/10/20
- Re: [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests, Nicholas Piggin, 2016/10/20
- Re: [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests, David Gibson, 2016/10/20
- [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, Nicholas Piggin, 2016/10/21
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, Cédric Le Goater, 2016/10/21
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, David Gibson, 2016/10/23
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, Nicholas Piggin, 2016/10/24
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, David Gibson, 2016/10/24
[Qemu-ppc] [PATCH 1/3] ppc: fix MSR_ME handling for system reset interrupt, Nicholas Piggin, 2016/10/20