mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Merge branch 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm
* 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm: target-arm: Fix incorrect check of kvm_vcpu_ioctl return value
This commit is contained in:
commit
f7a87c42a0
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ int kvm_arch_init_vcpu(CPUState *cs)
|
||||||
r.id = KVM_REG_ARM | KVM_REG_SIZE_U64 | KVM_REG_ARM_VFP | 31;
|
r.id = KVM_REG_ARM | KVM_REG_SIZE_U64 | KVM_REG_ARM_VFP | 31;
|
||||||
r.addr = (uintptr_t)(&v);
|
r.addr = (uintptr_t)(&v);
|
||||||
ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &r);
|
ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &r);
|
||||||
if (ret == ENOENT) {
|
if (ret == -ENOENT) {
|
||||||
return EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue