public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Vadim Rozenfeld <vrozenfe@redhat.com>
To: kvm@vger.kernel.org
Cc: Avi Kivity <avi@redhat.com>, Vadim Rozenfeld <vrozenfe@redhat.com>
Subject: [RFC PATCH 4/7] [hyper-v] hyper-v parameters
Date: Sun,  9 Oct 2011 20:52:52 +0200	[thread overview]
Message-ID: <1318186375-27672-5-git-send-email-vrozenfe@redhat.com> (raw)
In-Reply-To: <1318186375-27672-1-git-send-email-vrozenfe@redhat.com>

---
 hyperv.c      |   16 ++++++++++++++++
 hyperv.h      |    2 ++
 qemu-config.c |   19 +++++++++++++++++++
 qemu-config.h |    1 +
 4 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/hyperv.c b/hyperv.c
index 968ce89..a17f879 100644
--- a/hyperv.c
+++ b/hyperv.c
@@ -1,3 +1,19 @@
 #include "hyperv.h"
 #include "qemu-common.h"
+#include "qemu-option.h"
+#include "qemu-config.h"
 
+void hyperv_init(void)
+{
+    QemuOpts *opts = QTAILQ_FIRST(&qemu_hyperv_opts.head);
+    
+    if (!opts) {
+        return;
+    }
+}
+
+static void hyperv_initialize(void)
+{
+    hyperv_init();
+}
+device_init(hyperv_initialize);
diff --git a/hyperv.h b/hyperv.h
index a15ba90..eaf974a 100644
--- a/hyperv.h
+++ b/hyperv.h
@@ -6,5 +6,7 @@
 
 #include <asm/hyperv.h>
 
+void hyperv_init(void);
+
 #endif /* QEMU_HW_HYPERV_H */
 
diff --git a/qemu-config.c b/qemu-config.c
index acab438..a1f9689 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -512,6 +512,24 @@ QemuOptsList qemu_boot_opts = {
     },
 };
 
+QemuOptsList qemu_hyperv_opts = {
+    .name = "hyperv",
+    .head = QTAILQ_HEAD_INITIALIZER(qemu_hyperv_opts.head),
+    .desc = {
+        {
+            .name = "vapic",
+            .type = QEMU_OPT_BOOL,
+        }, {
+            .name = "wd",
+            .type = QEMU_OPT_BOOL,
+        }, {
+            .name = "spinlock",
+            .type = QEMU_OPT_NUMBER,
+        },
+        { /* end of list */ }
+    },
+};
+
 static QemuOptsList *vm_config_groups[32] = {
     &qemu_drive_opts,
     &qemu_chardev_opts,
@@ -526,6 +544,7 @@ static QemuOptsList *vm_config_groups[32] = {
     &qemu_option_rom_opts,
     &qemu_machine_opts,
     &qemu_boot_opts,
+    &qemu_hyperv_opts,
     NULL,
 };
 
diff --git a/qemu-config.h b/qemu-config.h
index 20d707f..c7d57d4 100644
--- a/qemu-config.h
+++ b/qemu-config.h
@@ -4,6 +4,7 @@
 extern QemuOptsList qemu_fsdev_opts;
 extern QemuOptsList qemu_virtfs_opts;
 extern QemuOptsList qemu_spice_opts;
+extern QemuOptsList qemu_hyperv_opts;
 
 QemuOptsList *qemu_find_opts(const char *group);
 void qemu_add_opts(QemuOptsList *list);
-- 
1.7.4.4


  parent reply	other threads:[~2011-10-09 18:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-09 18:52 [RFC PATCH 0/7] Initial support for Microsoft Hyper-V Vadim Rozenfeld
2011-10-09 18:52 ` [RFC PATCH 1/7] [hyper-v] Add hyper-v parameters block Vadim Rozenfeld
2011-10-10  6:54   ` Jan Kiszka
2011-10-10  9:40     ` Vadim Rozenfeld
2011-10-10 10:25       ` Jan Kiszka
2011-10-11  7:35   ` Paolo Bonzini
2011-10-11  7:42     ` Paolo Bonzini
2011-10-09 18:52 ` [RFC PATCH 2/7] [hyper-v] add hyper-v placeholders Vadim Rozenfeld
2011-10-11  7:40   ` Paolo Bonzini
2011-10-09 18:52 ` [RFC PATCH 3/7] [hyper-v] make Hyper-V option configurable Vadim Rozenfeld
2011-10-10  6:54   ` Jan Kiszka
2011-10-09 18:52 ` Vadim Rozenfeld [this message]
2011-10-09 18:52 ` [RFC PATCH 5/7] [hyper-v] hyper-v helper functions Vadim Rozenfeld
2011-10-09 19:01   ` Alon Levy
2011-10-10  6:45     ` Vadim Rozenfeld
2011-10-09 18:52 ` [RFC PATCH 6/7] [hyper-v] parse hyper-v parameters Vadim Rozenfeld
2011-10-09 18:52 ` [RFC PATCH 7/7] [hyper-v] init hyper-v cpuid leafs Vadim Rozenfeld
2011-10-11  7:38   ` Paolo Bonzini
2011-10-11 13:46     ` Vadim Rozenfeld
2011-10-11 15:52       ` Paolo Bonzini
2011-10-11 16:09         ` Vadim Rozenfeld
2011-10-11 16:17           ` Paolo Bonzini
2011-10-10  6:53 ` [RFC PATCH 0/7] Initial support for Microsoft Hyper-V Jan Kiszka
2011-10-10  9:39   ` Vadim Rozenfeld

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=1318186375-27672-5-git-send-email-vrozenfe@redhat.com \
    --to=vrozenfe@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