Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Glauber Costa <glommer@redhat.com>
To: kvm@vger.kernel.org
Cc: avi@redhat.com
Subject: [PATCH 10/10] remove id field from vcpu context structure
Date: Fri,  9 Oct 2009 15:03:18 -0300	[thread overview]
Message-ID: <1255111398-15251-11-git-send-email-glommer@redhat.com> (raw)
In-Reply-To: <1255111398-15251-10-git-send-email-glommer@redhat.com>

qemu already stores id information in a couple of places.
No need to do it here too.

Signed-off-by: Glauber Costa <glommer@redhat.com>
---
 qemu-kvm.c |    2 --
 qemu-kvm.h |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 8257dd3..06c1226 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -442,8 +442,6 @@ kvm_vcpu_context_t kvm_create_vcpu(CPUState *env, int id)
     int r;
     kvm_vcpu_context_t vcpu_ctx = qemu_malloc(sizeof(struct kvm_vcpu_context));
 
-    vcpu_ctx->id = id;
-
     r = kvm_vm_ioctl(kvm_state, KVM_CREATE_VCPU, id);
     if (r < 0) {
         fprintf(stderr, "kvm_create_vcpu: %m\n");
diff --git a/qemu-kvm.h b/qemu-kvm.h
index f051889..d07aa86 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -78,7 +78,6 @@ struct kvm_context {
 
 struct kvm_vcpu_context {
     int fd;
-    uint32_t id;
 };
 
 typedef struct kvm_context *kvm_context_t;
-- 
1.6.2.5


  reply	other threads:[~2009-10-09 18:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-09 18:03 [PATCH 00/10] Clean up vcpu context structure Glauber Costa
2009-10-09 18:03 ` [PATCH 01/10] use a more upstream friendly version of irqchip-in-kernel test Glauber Costa
2009-10-09 18:03   ` [PATCH 02/10] drop kvm_mmio_read and write Glauber Costa
2009-10-09 18:03     ` [PATCH 03/10] remove unneded opaque Glauber Costa
2009-10-09 18:03       ` [PATCH 04/10] remove kvm_context from vpcu structure Glauber Costa
2009-10-09 18:03         ` [PATCH 05/10] Use kvm_run inside CPUState Glauber Costa
2009-10-09 18:03           ` [PATCH 06/10] make some functions static Glauber Costa
2009-10-09 18:03             ` [PATCH 07/10] use env as parameter for functions that access kvm_run Glauber Costa
2009-10-09 18:03               ` [PATCH 08/10] use env in kvm_arch_run Glauber Costa
2009-10-09 18:03                 ` [PATCH 09/10] remove kvm_run from vcpu_context Glauber Costa
2009-10-09 18:03                   ` Glauber Costa [this message]
2009-10-12  9:24 ` [PATCH 00/10] Clean up vcpu context structure Avi Kivity
2009-10-13 17:04 ` Marcelo Tosatti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1255111398-15251-11-git-send-email-glommer@redhat.com \
    --to=glommer@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox