Skip to contentSkip to conversation

Lonely uq/master patch for 2014-02-24

GIT PULL Applied Paolo Bonzini 3 participants 4 messages Feb 25, 2014 – Feb 27, 2014

lore
Share & tools
lore
#0 lore raw

Anthony, Peter,

The following changes since commit 7c08db30e6a43f7083a881eb07bfbc878e001e08:

target-i386: Move KVM default-vendor hack to instance_init (2014-02-03 17:33:55 +0100)

are available in the git repository at:
git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master

Paolo

Alexander Graf (1):
KVM: Use return value for error print

 kvm-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/1] KVM: Use return value for error print

From: Alexander Graf <[email protected]>

Commit 94ccff13 introduced a more verbose failure message and retry operations on KVM VM creation. However, it ended up using a variable for its failure message that hasn't been initialized yet.

Fix it to use the value it meant to set.

---
 kvm-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kvm-all.c +1 -1
index f742f8d..979a8d9 100644
@@ -1427,7 +1427,7 @@ int kvm_init(void)
     } while (ret == -EINTR);
 
     if (ret < 0) {
-        fprintf(stderr, "ioctl(KVM_CREATE_VM) failed: %d %s\n", -s->vmfd,
+        fprintf(stderr, "ioctl(KVM_CREATE_VM) failed: %d %s\n", -ret,
                 strerror(-ret));
 
 #ifdef TARGET_S390X
Signature · 1 line
1.7.1
#2 lore raw

Re: [Qemu-devel] [Qemu-stable] [PULL 1/1] KVM: Use return value for error print

Quoting Paolo Bonzini (2014-02-25 04:44:56)

Quoted 11 lines

From: Alexander Graf <[email protected]>

Commit 94ccff13 introduced a more verbose failure message and retry operations on KVM VM creation. However, it ended up using a variable for its failure message that hasn't been initialized yet.

Fix it to use the value it meant to set.

Ping: last call for 1.7.1 (freeze today)

Quoted 19 lines
---
 kvm-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kvm-all.c +1 -1
index f742f8d..979a8d9 100644
@@ -1427,7 +1427,7 @@ int kvm_init(void)
     } while (ret == -EINTR);
 
     if (ret < 0) {
-        fprintf(stderr, "ioctl(KVM_CREATE_VM) failed: %d %s\n", -s->vmfd,
+        fprintf(stderr, "ioctl(KVM_CREATE_VM) failed: %d %s\n", -ret,
                 strerror(-ret));
 
 #ifdef TARGET_S390X
Signature · 1 line
1.7.1
#3 lore raw
In reply to Paolo Bonzini
Quoted 9 lines · Paolo Bonzini

Anthony, Peter,

The following changes since commit 7c08db30e6a43f7083a881eb07bfbc878e001e08:

target-i386: Move KVM default-vendor hack to instance_init (2014-02-03 17:33:55 +0100)

are available in the git repository at:
git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master

Quoted 7 lines

Paolo

Alexander Graf (1):
KVM: Use return value for error print

 kvm-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks. (This didn't make it into my list of pull requests to process because it is missing the magic words "for you to fetch changes up to".)

-- PMM