mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
KVM: s390: rework code that sets the prefix
There are several places in the kvm module, which set the prefix register. Since we need to flush the cpu, lets combine this operation into a helper function. This helper will also explicitely mask out the unused bits. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
2b036c6b86
commit
8d26cf7b40
4 changed files with 10 additions and 6 deletions
|
@ -236,8 +236,7 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
|
|||
VCPU_EVENT(vcpu, 4, "interrupt: set prefix to %x",
|
||||
inti->prefix.address);
|
||||
vcpu->stat.deliver_prefix_signal++;
|
||||
vcpu->arch.sie_block->prefix = inti->prefix.address;
|
||||
vcpu->arch.sie_block->ihcpu = 0xffff;
|
||||
kvm_s390_set_prefix(vcpu, inti->prefix.address);
|
||||
break;
|
||||
|
||||
case KVM_S390_RESTART:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue