[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 05/13] s390x: protvirt: Add pv state to cpu env
From: |
Janosch Frank |
Subject: |
Re: [PATCH v2 05/13] s390x: protvirt: Add pv state to cpu env |
Date: |
Fri, 29 Nov 2019 12:22:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 |
On 11/29/19 11:30 AM, David Hildenbrand wrote:
> On 29.11.19 10:48, Janosch Frank wrote:
>> We need to know if we run in pv state or not when emulating
>> instructions.
>>
>> Signed-off-by: Janosch Frank <address@hidden>
>> ---
>> hw/s390x/s390-virtio-ccw.c | 2 ++
>> target/s390x/cpu.h | 1 +
>> 2 files changed, 3 insertions(+)
>>
>> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
>> index e2a302398d..6fcd695b81 100644
>> --- a/hw/s390x/s390-virtio-ccw.c
>> +++ b/hw/s390x/s390-virtio-ccw.c
>> @@ -357,6 +357,7 @@ static void s390_machine_reset(MachineState *machine)
>> s390_pv_vcpu_destroy(t);
>> }
>> s390_pv_vm_destroy();
>> + env->pv = false;
>> }
>>
>> qemu_devices_reset();
>> @@ -406,6 +407,7 @@ static void s390_machine_reset(MachineState *machine)
>> s390_ipl_pv_unpack();
>> /* Verify integrity */
>> s390_pv_verify();
>> + env->pv = true;
>> s390_cpu_set_state(S390_CPU_STATE_OPERATING, cpu);
>> break;
>> default:
>> diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h
>> index d2af13b345..43e6c286d2 100644
>> --- a/target/s390x/cpu.h
>> +++ b/target/s390x/cpu.h
>> @@ -116,6 +116,7 @@ struct CPUS390XState {
>>
>> /* Fields up to this point are cleared by a CPU reset */
>> struct {} end_reset_fields;
>> + bool pv; /* protected virtualization */
>
> so ... the preceding patches fail to compile?
>
> Please properly squash that ...
>
Sure, will do.
signature.asc
Description: OpenPGP digital signature
- [PATCH v2 06/13] s390x: protvirt: KVM intercept changes, (continued)
- [PATCH v2 04/13] s390x: protvirt: Handle diag 308 subcodes 0,1,3,4, Janosch Frank, 2019/11/29
- [PATCH v2 05/13] s390x: protvirt: Add pv state to cpu env, Janosch Frank, 2019/11/29
- [PATCH v2 08/13] s390x: protvirt: Add new VCPU reset functions, Janosch Frank, 2019/11/29
[PATCH v2 12/13] s390x: protvirt: Disable address checks for PV guest IO emulation, Janosch Frank, 2019/11/29
[PATCH v2 09/13] s390x: Exit on vcpu reset error, Janosch Frank, 2019/11/29
[PATCH v2 11/13] s390x: protvirt: Move diag 308 data over SIDAD, Janosch Frank, 2019/11/29
[PATCH v2 10/13] s390x: protvirt: Set guest IPL PSW, Janosch Frank, 2019/11/29