[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 7/8] ppc: LPCR is a HV resource
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [PATCH 7/8] ppc: LPCR is a HV resource |
Date: |
Mon, 27 Jun 2016 08:55:20 +0200 |
From: Benjamin Herrenschmidt <address@hidden>
Don't allow access in guest mode
Signed-off-by: Benjamin Herrenschmidt <address@hidden>
Signed-off-by: Cédric Le Goater <address@hidden>
---
target-ppc/translate_init.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index a2d9ff2dd117..55d1bfac97c4 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7846,10 +7846,11 @@ static void gen_spr_power5p_lpar(CPUPPCState *env)
{
#if !defined(CONFIG_USER_ONLY)
/* Logical partitionning */
- spr_register_kvm(env, SPR_LPCR, "LPCR",
- SPR_NOACCESS, SPR_NOACCESS,
- &spr_read_generic, &spr_write_lpcr,
- KVM_REG_PPC_LPCR, LPCR_LPES0 | LPCR_LPES1);
+ spr_register_kvm_hv(env, SPR_LPCR, "LPCR",
+ SPR_NOACCESS, SPR_NOACCESS,
+ SPR_NOACCESS, SPR_NOACCESS,
+ &spr_read_generic, &spr_write_lpcr,
+ KVM_REG_PPC_LPCR, LPCR_LPES0 | LPCR_LPES1);
spr_register_hv(env, SPR_HDEC, "HDEC",
SPR_NOACCESS, SPR_NOACCESS,
SPR_NOACCESS, SPR_NOACCESS,
--
2.1.4
- [Qemu-ppc] [PATCH 0/8] pnv: more fixes to the exception model, Cédric Le Goater, 2016/06/27
- [Qemu-ppc] [PATCH 1/8] ppc: Add a bunch of hypervisor SPRs to Book3s, Cédric Le Goater, 2016/06/27
- [Qemu-ppc] [PATCH 2/8] ppc: Update LPCR definitions, Cédric Le Goater, 2016/06/27
- [Qemu-ppc] [PATCH 3/8] ppc: Use a helper to filter writes to LPCR, Cédric Le Goater, 2016/06/27
- [Qemu-ppc] [PATCH 4/8] ppc: Fix conditions for delivering external interrupts to a guest, Cédric Le Goater, 2016/06/27
- [Qemu-ppc] [PATCH 5/8] ppc: Enforce setting MSR:EE, IR and DR when MSR:PR is set, Cédric Le Goater, 2016/06/27
- [Qemu-ppc] [PATCH 6/8] ppc: Initial HDEC support, Cédric Le Goater, 2016/06/27
- [Qemu-ppc] [PATCH 7/8] ppc: LPCR is a HV resource,
Cédric Le Goater <=
- [Qemu-ppc] [PATCH 8/8] ppc: Print HSRR0/HSRR1 in "info registers", Cédric Le Goater, 2016/06/27
- Re: [Qemu-ppc] [PATCH 0/8] pnv: more fixes to the exception model, David Gibson, 2016/06/28