From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnA8i-00056u-TL for qemu-devel@nongnu.org; Fri, 16 Oct 2015 14:54:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnA8f-00052f-HV for qemu-devel@nongnu.org; Fri, 16 Oct 2015 14:54:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnA8f-00052b-C0 for qemu-devel@nongnu.org; Fri, 16 Oct 2015 14:54:01 -0400 From: Alex Williamson Date: Fri, 16 Oct 2015 12:53:59 -0600 Message-ID: <20151016184627.1248.63936.stgit@gimli.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v3 0/2] Enable specifying a non-default Hyper-V vendor ID List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kvm@vger.kernel.org Cc: pbonzini@redhat.com, imammedo@redhat.com v3: Incorporate suggestion from Igor to move the string length test out to the property parsing. A string that's too long will now get an error like: $ qemu-system-x86_64 -cpu qemu64,hv_vendor_id=123456789abcd qemu-system-x86_64: Property 'host-x86_64-cpu.hv-vendor-id' doesn't take value '123456789abcd' v2: Remove abort, but truncate string --- Alex Williamson (2): qapi: Create DEFINE_PROP_STRING_LEN kvm: Allow the Hyper-V vendor ID to be specified hw/core/qdev-properties.c | 7 +++++++ include/hw/qdev-core.h | 1 + include/hw/qdev-properties.h | 16 ++++++++++++++-- target-i386/cpu-qom.h | 1 + target-i386/cpu.c | 1 + target-i386/kvm.c | 8 +++++++- 6 files changed, 31 insertions(+), 3 deletions(-)