From nobody Mon Feb 9 22:03:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1633179288; cv=none; d=zohomail.com; s=zohoarc; b=ZPD8TJ6XshinL70v20UtheyVbKjcNqKtumvYVNfxB28bPd0pBG1uN4h2RE1iDGFKD1ZqaSyD70Qtwiaw18fG+V7CAuhuvZ1cs422BfJwe4mZenU/SXtX+FotY91MSvoqxbSDFgY1ps2an+klBqHdQpaSxJeJcwVprLrfRgwoTYI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1633179288; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=WyR/eNCtMhabJTiJL4KYPQfagO3ysZNetDQfcxieNmI=; b=DH5n3rCg9orJCy2vXlrAj4OKEIFnFfJiL4OlIUFxTbSYAsVZjwBopRnHf9U8wAdDWU9pD4CFqRo/XQmBWvSZOXe1j+5VabEeQgrTPSB3LRHBcafphRvy46QjcXHXUlnZr/bkQ8YXhi8TbjaIYWO50Oz1Vdg48+wVfW+zOdgIn7o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1633179288244378.73632296468327; Sat, 2 Oct 2021 05:54:48 -0700 (PDT) Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-272-DhhHMBczN86ZiAPZL8AH2g-1; Sat, 02 Oct 2021 08:54:46 -0400 Received: by mail-wm1-f70.google.com with SMTP id d12-20020a1c730c000000b0030b4e0ecf5dso3788071wmb.9 for ; Sat, 02 Oct 2021 05:54:46 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (118.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.118]) by smtp.gmail.com with ESMTPSA id o12sm8851885wms.15.2021.10.02.05.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 05:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633179287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WyR/eNCtMhabJTiJL4KYPQfagO3ysZNetDQfcxieNmI=; b=fVsltZ6HffjC1hd7tmQU6T9GQyrwvL4MAOyBjfoUhvwkNh5jg49dTbrlb6cneTMLejizPX 6QakBJQu4NqoT+E6lCPMRXN2sSngDGsZYTiZQ/vnvhPKXe6dYfHJcYsDLhEzf9vQsqiDj3 zLfYKk8B/CZqo2Mqs1Um/m+B+x/6upg= X-MC-Unique: DhhHMBczN86ZiAPZL8AH2g-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WyR/eNCtMhabJTiJL4KYPQfagO3ysZNetDQfcxieNmI=; b=e5OsGCIRvL90o7fu7uhKT3PsTuM5BYEFDauyuhmxBM9RWtTdPec3Upp3lh6TuDThfz lXG2SN6+0LzGh9XQhaOMGfY4BSXv9+Opyj5wCcJ/lA6rESex2g3s0XjoCEjL5vr48Crq SjtfP6PyYESuIH4FYqvzJrmF5isLeNRe69fDkFSD4fHhhQGKm8l6zj1BmAzluoi8I+W/ OyNO1s8XMT9RsOSQEmHsx28bm4hpc9E/OmaSEBa9KInqCGlHTQ27mDEnxLTVfJh3F375 RSIayFv1YPCQvVmT/jeKeusz9w3ReQSMVQCmCbP8p5ozdKzH+SI7Wql79dFu0AnPB4UW gngg== X-Gm-Message-State: AOAM530wsACOOanT2dd+oljBwUjuUWA13QYMNlJ32FEheuKexj4SG+ob 5F5uP2xh8O0Kl2vIm+50eYpqydF4UdCqrEqhdFi4KUTlSYjBG6U+PimbB5mW/QojbONSB9SAPUR XlPIpNPE2L71o0A== X-Received: by 2002:a5d:44d1:: with SMTP id z17mr3370220wrr.187.1633179285064; Sat, 02 Oct 2021 05:54:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy67yh1G/4H9iMDyZQOpRZdq+m1Nl/19ODGozR8E+nhB1/ZKWnqdXBw6WrBb4+UnlkFrV3bSA== X-Received: by 2002:a5d:44d1:: with SMTP id z17mr3370205wrr.187.1633179284860; Sat, 02 Oct 2021 05:54:44 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Dr . David Alan Gilbert" , Dov Murik , Sergio Lopez , kvm@vger.kernel.org, James Bottomley , Eduardo Habkost , Paolo Bonzini , Brijesh Singh , "Daniel P . Berrange" Subject: [PATCH v3 19/22] monitor: Restrict 'info sev' to x86 targets Date: Sat, 2 Oct 2021 14:53:14 +0200 Message-Id: <20211002125317.3418648-20-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211002125317.3418648-1-philmd@redhat.com> References: <20211002125317.3418648-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1633179291260100001 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Paolo Bonzini --- include/monitor/hmp-target.h | 1 + include/monitor/hmp.h | 1 - target/i386/sev-sysemu-stub.c | 2 +- target/i386/sev.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/monitor/hmp-target.h b/include/monitor/hmp-target.h index dc53add7eef..96956d0fc41 100644 --- a/include/monitor/hmp-target.h +++ b/include/monitor/hmp-target.h @@ -49,6 +49,7 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict); void hmp_mce(Monitor *mon, const QDict *qdict); void hmp_info_local_apic(Monitor *mon, const QDict *qdict); void hmp_info_io_apic(Monitor *mon, const QDict *qdict); +void hmp_info_sev(Monitor *mon, const QDict *qdict); void hmp_info_sgx(Monitor *mon, const QDict *qdict); =20 #endif /* MONITOR_HMP_TARGET_H */ diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h index 3baa1058e2c..6bc27639e01 100644 --- a/include/monitor/hmp.h +++ b/include/monitor/hmp.h @@ -124,7 +124,6 @@ void hmp_info_ramblock(Monitor *mon, const QDict *qdict= ); void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdict); void hmp_info_vm_generation_id(Monitor *mon, const QDict *qdict); void hmp_info_memory_size_summary(Monitor *mon, const QDict *qdict); -void hmp_info_sev(Monitor *mon, const QDict *qdict); void hmp_info_replay(Monitor *mon, const QDict *qdict); void hmp_replay_break(Monitor *mon, const QDict *qdict); void hmp_replay_delete_break(Monitor *mon, const QDict *qdict); diff --git a/target/i386/sev-sysemu-stub.c b/target/i386/sev-sysemu-stub.c index 1836b32e4fc..b2a4033a030 100644 --- a/target/i386/sev-sysemu-stub.c +++ b/target/i386/sev-sysemu-stub.c @@ -13,7 +13,7 @@ =20 #include "qemu/osdep.h" #include "monitor/monitor.h" -#include "monitor/hmp.h" +#include "monitor/hmp-target.h" #include "qapi/qapi-commands-misc-target.h" #include "qapi/qmp/qerror.h" #include "qapi/error.h" diff --git a/target/i386/sev.c b/target/i386/sev.c index 7caaa117ff7..c6d8fc52eb2 100644 --- a/target/i386/sev.c +++ b/target/i386/sev.c @@ -32,7 +32,7 @@ #include "migration/blocker.h" #include "qom/object.h" #include "monitor/monitor.h" -#include "monitor/hmp.h" +#include "monitor/hmp-target.h" #include "qapi/qapi-commands-misc-target.h" #include "qapi/qmp/qerror.h" #include "exec/confidential-guest-support.h" --=20 2.31.1