vsie.c (5630a8e82b1ee4d13daa500c045603c5b4801fd9) vsie.c (13ee3f678b1117d7511a2c5e10549f7c37f4cadf)
1/*
2 * kvm nested virtualization support for s390x
3 *
4 * Copyright IBM Corp. 2016
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License (version 2 only)
8 * as published by the Free Software Foundation.

--- 310 unchanged lines hidden (view full) ---

319 }
320 /* Run-time-Instrumentation */
321 if (test_kvm_facility(vcpu->kvm, 64))
322 scb_s->ecb3 |= scb_o->ecb3 & 0x01U;
323 if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_SIIF))
324 scb_s->eca |= scb_o->eca & 0x00000001U;
325 if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_IB))
326 scb_s->eca |= scb_o->eca & 0x40000000U;
1/*
2 * kvm nested virtualization support for s390x
3 *
4 * Copyright IBM Corp. 2016
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License (version 2 only)
8 * as published by the Free Software Foundation.

--- 310 unchanged lines hidden (view full) ---

319 }
320 /* Run-time-Instrumentation */
321 if (test_kvm_facility(vcpu->kvm, 64))
322 scb_s->ecb3 |= scb_o->ecb3 & 0x01U;
323 if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_SIIF))
324 scb_s->eca |= scb_o->eca & 0x00000001U;
325 if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_IB))
326 scb_s->eca |= scb_o->eca & 0x40000000U;
327 if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_CEI))
328 scb_s->eca |= scb_o->eca & 0x80000000U;
327
328 prepare_ibc(vcpu, vsie_page);
329 rc = shadow_crycb(vcpu, vsie_page);
330out:
331 if (rc)
332 unshadow_scb(vcpu, vsie_page);
333 return rc;
334}

--- 681 unchanged lines hidden ---
329
330 prepare_ibc(vcpu, vsie_page);
331 rc = shadow_crycb(vcpu, vsie_page);
332out:
333 if (rc)
334 unshadow_scb(vcpu, vsie_page);
335 return rc;
336}

--- 681 unchanged lines hidden ---