[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v2 2/3] s390x/kvm: Handle bpb feature
From: |
David Hildenbrand |
Subject: |
Re: [qemu-s390x] [PATCH v2 2/3] s390x/kvm: Handle bpb feature |
Date: |
Wed, 17 Jan 2018 22:12:40 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 17.01.2018 20:37, Christian Borntraeger wrote:
> We need to handle the bpb control on reset and migration. Normally
> stfle.82 is transparent (and the normal guest part works without
> hypervisor activity). To prevent any issues we require full
> host kernel support for this feature.
>
> Signed-off-by: Christian Borntraeger <address@hidden>
> ---
> target/s390x/cpu.c | 1 +
> target/s390x/cpu.h | 1 +
> target/s390x/cpu_features.c | 1 +
> target/s390x/cpu_features_def.h | 1 +
> target/s390x/gen-features.c | 1 +
> target/s390x/kvm.c | 14 ++++++++++++++
> target/s390x/machine.c | 17 +++++++++++++++++
> 7 files changed, 36 insertions(+)
>
> diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
> index ae3cee9..1577b2c 100644
> --- a/target/s390x/cpu.c
> +++ b/target/s390x/cpu.c
> @@ -89,6 +89,7 @@ static void s390_cpu_reset(CPUState *s)
> CPUS390XState *env = &cpu->env;
>
> env->pfault_token = -1UL;
> + env->bpbc = 0;
As this is effectively only 1 bit, I wonder if we should also make that
clear in QEMU
bool bpbc, VMSTATE_BOOL ...
Apart from that, looks sane.
--
Thanks,
David / dhildenb