Skip to content

Commit

Permalink
KVM: s390: Fix sdnxo setting for nested guests
Browse files Browse the repository at this point in the history
If the guest does not use the host register management, but it uses
the sdnx area, we must fill in a proper sdnxo value (address of sdnx
and the sdnxc).

Reported-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
  • Loading branch information
Christian Borntraeger committed Apr 12, 2017
1 parent f7b1a77 commit fe722d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kvm/vsie.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ static int pin_blocks(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
rc = set_validity_icpt(scb_s, 0x10b0U);
if (rc)
goto unpin;
scb_s->sdnxo = hpa;
scb_s->sdnxo = hpa | sdnxc;
}
return 0;
unpin:
Expand Down

0 comments on commit fe722d1

Please sign in to comment.