From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vadim Rozenfeld Subject: [RFC PATCH 1/7] [hyper-v] Add hyper-v parameters block. Date: Sun, 9 Oct 2011 20:52:49 +0200 Message-ID: <1318186375-27672-2-git-send-email-vrozenfe@redhat.com> References: <1318186375-27672-1-git-send-email-vrozenfe@redhat.com> Cc: Avi Kivity , Vadim Rozenfeld To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:11157 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399Ab1JISxG (ORCPT ); Sun, 9 Oct 2011 14:53:06 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p99Ir6Kn021829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 9 Oct 2011 14:53:06 -0400 In-Reply-To: <1318186375-27672-1-git-send-email-vrozenfe@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: --- qemu-options.hx | 23 +++++++++++++++++++++++ vl.c | 2 ++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 3a13533..9f60059 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2483,6 +2483,29 @@ DEF("kvm-shadow-memory", HAS_ARG, QEMU_OPTION_kvm_shadow_memory, " allocate MEGABYTES for kvm mmu shadowing\n", QEMU_ARCH_I386) +DEF("hyperv", HAS_ARG, QEMU_OPTION_hyperv, + "-hyperv [vapic=on|off][,spinlock=retries][,wd=on|off]\n" + " enable Hyper-V Enlightenment\n", + QEMU_ARCH_ALL) +STEXI +@item -hyperv +@findex -hyperv +@item vapic=@var{vapic} +@var{vapic} is "on" or "off" and allows for using virtual APIC. +Default is "off". +@findex vapic +@item spinlock=@var{spinlock} +@var{spinlock} is a recommended number of attempts to retry +a spinlock failure befor notifying the hypervisor. +Default is 0xFFFFFFFF (never to retry). +@findex spinlock +:@item wd=@var{wd} +@var{wd} is "on" or "off" and recommends using relaxed timing. +Default is "off" +@findex wd +Simulate Hyper-V Enlightenment. Disable by default. +ETEXI + HXCOMM This is the last statement. Insert new options before this line! STEXI @end table diff --git a/vl.c b/vl.c index b0358e9..a6d1fc0 100644 --- a/vl.c +++ b/vl.c @@ -3185,6 +3185,8 @@ int main(int argc, char **argv, char **envp) fclose(fp); break; } + case QEMU_OPTION_hyperv: + break; default: os_parse_cmd_args(popt->index, optarg); } -- 1.7.4.4