diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-02-01 22:15:48 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-02-14 12:39:45 -0200 |
commit | 748a680b966c65cca9292ba0b9cbb6a04d063b21 (patch) | |
tree | 539a6ee48c045e63a74d8bf1893bbe34750e6af1 | |
parent | 46481d3921b86ef5ded7be7b5ce8194608f30e6b (diff) |
kvm: Report proper error on GET_VCPU_MMAP_SIZE failures
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r-- | kvm-all.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -219,6 +219,7 @@ int kvm_init_vcpu(CPUState *env) mmap_size = kvm_ioctl(s, KVM_GET_VCPU_MMAP_SIZE, 0); if (mmap_size < 0) { + ret = mmap_size; DPRINTF("KVM_GET_VCPU_MMAP_SIZE failed\n"); goto err; } |