From patchwork Fri Nov 2 11:01:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10665267 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 17F42157A for ; Fri, 2 Nov 2018 11:02:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F15642B3A0 for ; Fri, 2 Nov 2018 11:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E335C2B3AF; Fri, 2 Nov 2018 11:02:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 945162B3A0 for ; Fri, 2 Nov 2018 11:02:10 +0000 (UTC) Received: from localhost ([::1]:50749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIXDN-0003hs-CQ for patchwork-qemu-devel@patchwork.kernel.org; Fri, 02 Nov 2018 07:02:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIXCd-0003P2-P4 for qemu-devel@nongnu.org; Fri, 02 Nov 2018 07:01:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIXCQ-0004wX-5D for qemu-devel@nongnu.org; Fri, 02 Nov 2018 07:01:22 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:38030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIXCP-0004wA-QU for qemu-devel@nongnu.org; Fri, 02 Nov 2018 07:01:09 -0400 Received: by mail-pl1-x643.google.com with SMTP id p7-v6so862600plk.5 for ; Fri, 02 Nov 2018 04:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7A/aR5a+wQl10pamg7bUWNw4J1XpOCRtKhs/VK+iygQ=; b=HYuwLgZR9tKGcMunshWSZnq3owbeKNkIe+3CT2eGA/BkzC10yvgAB2p4QIRNGVj4XD uagn8mjB4yxziwPPZvRM7cEKcgB/0UAvES5btaiVLRd3OKI9f3fsVgXhjGnK+4MJ8A3z r42bfoyMJotNqDOwifcQ3MZcp2sMIKVtjTE6LU5s7QmR031+wn1RPEQe2Lg3ZpHm6Li6 jbIq1KFrnjPsfjDmzm8KuMFdtTOdYx665tYi46JYfq+p/Oc2JFBMRUl0BdV3szuUb+uC 3J5P8WHUcXR2e6NX8jFoEDGp+7dUbjMFV9YnLwj+6+esCYZuVhe+NOvhNM+irf+S0BnR Wvnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7A/aR5a+wQl10pamg7bUWNw4J1XpOCRtKhs/VK+iygQ=; b=KbVeq2yrdBS6/rNxTf0yqPdQLCi4Retm3E79MQqs/0GMCKtsG8xlnoMMxE+wW5/UCz LbtLxU0eXaWcdZ08c/TyDC9JamZww9xvb3tiK/kgG40MUDOnDPsg02i8+069B4tD2pQG ejDUOM/g5+0QDH1kW4rlgwxR7M8hUgjqQkZMomDFSgXs3K8tDHFqg5hgTrzVvIf+Gpxt swnswyH14Ju6+GC3HgvkqrMjiIlFPZkCWmkmNz1Fd5L+xejFx7yLutF0Yn8WULtIf/dZ VXiqOoTn5vLYzP3hCD0TUEzbrntu7FMI3JIGCyAhPHq4vAEGTZoGJpvt+ilPvb35igfn myIg== X-Gm-Message-State: AGRZ1gICqrZrioSbiHLYzZFWK85cIoDrUG47/78Qa4wRaDEHXtH9bGdH ijvn2e/n/QempfDSEyNRRe4= X-Google-Smtp-Source: AJdET5dz4we8OruqtWShsRLps2J6koq1jE8BPdMZht94AD623h3Qvd0ZGffX3njhka32iDydIUvQLA== X-Received: by 2002:a17:902:ab8a:: with SMTP id f10-v6mr11337496plr.203.1541156468609; Fri, 02 Nov 2018 04:01:08 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.101]) by smtp.gmail.com with ESMTPSA id u2-v6sm18813164pfn.50.2018.11.02.04.01.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 04:01:07 -0700 (PDT) From: Li Qiang To: eblake@redhat.com, armbru@redhat.com Date: Fri, 2 Nov 2018 04:01:03 -0700 Message-Id: <1541156463-2730-1-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::643 Subject: [Qemu-devel] [PATCH] qapi: misc: change the 'pc' to unsinged 64 in CpuInfo X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Li Qiang , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP When trigger a 'query-cpus' qmp, the pc is an signed value like following: {"arch": "x86", ... "pc": -1732653994, "halted": true,...} It is strange. Change it to uint64_t. Signed-off-by: Li Qiang Reviewed-by: Eric Blake --- qapi/misc.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qapi/misc.json b/qapi/misc.json index 6c1c5c0a37..621ec6ce13 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -407,7 +407,7 @@ # # Since: 2.6 ## -{ 'struct': 'CpuInfoX86', 'data': { 'pc': 'int' } } +{ 'struct': 'CpuInfoX86', 'data': { 'pc': 'uint64' } } ## # @CpuInfoSPARC: @@ -420,7 +420,7 @@ # # Since: 2.6 ## -{ 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'int', 'npc': 'int' } } +{ 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'uint64', 'npc': 'uint64' } } ## # @CpuInfoPPC: @@ -431,7 +431,7 @@ # # Since: 2.6 ## -{ 'struct': 'CpuInfoPPC', 'data': { 'nip': 'int' } } +{ 'struct': 'CpuInfoPPC', 'data': { 'nip': 'uint64' } } ## # @CpuInfoMIPS: @@ -442,7 +442,7 @@ # # Since: 2.6 ## -{ 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'int' } } +{ 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'uint64' } } ## # @CpuInfoTricore: @@ -453,7 +453,7 @@ # # Since: 2.6 ## -{ 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } } +{ 'struct': 'CpuInfoTricore', 'data': { 'PC': 'uint64' } } ## # @CpuInfoRISCV: @@ -464,7 +464,7 @@ # # Since 2.12 ## -{ 'struct': 'CpuInfoRISCV', 'data': { 'pc': 'int' } } +{ 'struct': 'CpuInfoRISCV', 'data': { 'pc': 'uint64' } } ## # @CpuS390State: