From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUYMB-000831-5D for qemu-devel@nongnu.org; Tue, 02 Aug 2016 07:59:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUYM4-00014W-G4 for qemu-devel@nongnu.org; Tue, 02 Aug 2016 07:59:34 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:1854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUYM4-00013a-7e for qemu-devel@nongnu.org; Tue, 02 Aug 2016 07:59:28 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u72BsLgx144265 for ; Tue, 2 Aug 2016 07:59:27 -0400 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0a-001b2d01.pphosted.com with ESMTP id 24gqhkx0ce-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 02 Aug 2016 07:59:26 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 2 Aug 2016 12:59:24 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 358811B0804B for ; Tue, 2 Aug 2016 13:00:52 +0100 (BST) Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u72BxMHH9503062 for ; Tue, 2 Aug 2016 11:59:22 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u72AxOPM024226 for ; Tue, 2 Aug 2016 04:59:24 -0600 From: David Hildenbrand Date: Tue, 2 Aug 2016 13:58:47 +0200 In-Reply-To: <1470139155-53900-1-git-send-email-dahi@linux.vnet.ibm.com> References: <1470139155-53900-1-git-send-email-dahi@linux.vnet.ibm.com> Message-Id: <1470139155-53900-2-git-send-email-dahi@linux.vnet.ibm.com> Subject: [Qemu-devel] [Patch v1 01/29] qmp: details about CPU definitions in query-cpu-definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ehabkost@redhat.com, jdenemar@redhat.com, imammedo@redhat.com, cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, fiuczy@linux.vnet.ibm.com, mimu@linux.vnet.ibm.com It might be of interest for tooling whether a CPU definition can be safely used when migrating, or if e.g. CPU features might get lost during migration when migrationg from/to a different QEMU version or host, even if the same compatibility machine is used. Also, we want to know if a CPU definition is static and will never change. Beause these definitions can then be used independantly of a compatibility machine and will always have the same feature set, they can e.g. be used to indicate the "host" model in libvirt later on. Let's add optional return values to query-cpu-definitions, stating for each returned CPU definition, if it is migration-safe and if it is static. Signed-off-by: David Hildenbrand --- qapi-schema.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 5658723..3f50c1d 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3038,10 +3038,19 @@ # # @name: the name of the CPU definition # +# @migration-safe: #optional whether a CPU definition can be safely used for +# migration in combination with a QEMU compatibility machine +# when migrating between different QMU versions and hosts. +# If not provided, information is not available. +# +# @static: #optional whether a CPU definition is static and will not change +# between QEMU versions / QEMU machines. A static model is always +# migration-safe. If not provided, information is not available. +# # Since: 1.2.0 ## { 'struct': 'CpuDefinitionInfo', - 'data': { 'name': 'str' } } + 'data': { 'name': 'str', '*migration-safe' : 'bool', '*static' : 'bool' } } ## # @query-cpu-definitions: -- 2.6.6