From patchwork Thu Oct 7 17:56:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 12542575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66847C433EF for ; Thu, 7 Oct 2021 18:05:08 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 149D561175 for ; Thu, 7 Oct 2021 18:05:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 149D561175 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYXlT-0001ez-7b for qemu-devel@archiver.kernel.org; Thu, 07 Oct 2021 14:05:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYXcx-0004H1-LW for qemu-devel@nongnu.org; Thu, 07 Oct 2021 13:56:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:23103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYXcv-0005SW-5I for qemu-devel@nongnu.org; Thu, 07 Oct 2021 13:56:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633629376; 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; bh=45hrM8wuc+myNiOM2zoMYzzXxjY8sOr9rUzPHTWOskw=; b=cg7tgBNlzcWLu6F2DRm9wdonAAcp+W1Uj5Vg+WKaHz3maMe5/pV9Yxvxxlizbo2qdAaRR0 agIoY2ycguIRP+IvbFxZCcMZ6rSTFA7wQ8po7JIJVE4KmfJ/PyBgxpyO5j+2b67irF3x0o FA4wci8htATsS3OqTFuZe4NeH4RbuUw= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-241-9vZRu3TqM4aaWfy4TNMLew-1; Thu, 07 Oct 2021 13:56:15 -0400 X-MC-Unique: 9vZRu3TqM4aaWfy4TNMLew-1 Received: by mail-wr1-f70.google.com with SMTP id d13-20020adfa34d000000b00160aa1cc5f1so5318063wrb.14 for ; Thu, 07 Oct 2021 10:56:15 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=KZEs3CHKVCPRrYTgLS0uyWcTaAMKvQL1Cby26ru6Q68=; b=fqiqUoja8hLidENrjlzw8DJqLSynHlUVBqkSq1D/oLKQwTgMqJ05LX2QX+jBJ6hr9B w6Ql8DUG4rrnjs+a5GM3FiJjuOmo2MiUaIR0uYTRj14wBjoJrIu/ZxgSZwQ5qcDTa761 P4Dt6jfn57lPCBFcJ3ydIrdp+rVdvO1OtjSOFaSiDZGrNmXDN8V/eDLyuf3ksifCZ98a I2WqWErJuOVohKFkqxhEgenUPihR0Br8Q/ps3UjuJCqhaU11Ufn5l2CZYwboVq6FUbU6 3BNf5Q7xdMheAGW4+BYmJ8iUZG171Dcwxc0tAh85u+WmTjhaMzHJ7tWH/bcbqfTHfhLz HkxA== X-Gm-Message-State: AOAM532ekwvCOnHBoZu+oyI2aTWxllKPEz3nawmi6I+9xrNStcfSjGJF hqz9klCkANS/JCAC+ZU07H1/+FVLVcwHOqWNghwz5tsacw+ChTnm5NLKz3R41eZ3lwRUStVvg2G C7NQRKt60Wdc1eT2zDZ/k76zFa+5Iv5xcPjujho9fyG8EHzfIj1dyfgU2f/yiSY// X-Received: by 2002:a5d:59ae:: with SMTP id p14mr7450190wrr.278.1633629373897; Thu, 07 Oct 2021 10:56:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+9umpctT3UPQ6GHS06rOgBeXK0Eow9hoM/zqz4ZFEISeSFRsG+JU0QqBTMq7vIVmJCVG0HA== X-Received: by 2002:a5d:59ae:: with SMTP id p14mr7450166wrr.278.1633629373709; Thu, 07 Oct 2021 10:56:13 -0700 (PDT) Received: from x1w.redhat.com (118.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.118]) by smtp.gmail.com with ESMTPSA id q7sm20369wrs.73.2021.10.07.10.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 10:56:13 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/4] hw/i386/sgx: Housekeeping around SGX Date: Thu, 7 Oct 2021 19:56:08 +0200 Message-Id: <20211007175612.496366-1-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 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 Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.05, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yang Zhong , Eduardo Habkost , "Michael S. Tsirkin" , Richard Henderson , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" - Update MAINTAINERS - Have sgx_epc_get_section() return a boolean - Move QMP commands from target/i386 to hw/i386 (suggested by Paolo) Based-on: <20211007161716.453984-1-philmd@redhat.com> Philippe Mathieu-Daudé (4): MAINTAINERS: Cover SGX documentation file with X86/KVM section hw/i386/sgx: Have sgx_epc_get_section() return a boolean hw/i386/sgx: Move qmp_query_sgx_capabilities() to hw/i386/sgx.c hw/i386/sgx: Move qmp_query_sgx() and hmp_info_sgx() to hw/i386/sgx.c include/hw/i386/sgx-epc.h | 2 +- include/hw/i386/sgx.h | 12 ------------ hw/i386/sgx-stub.c | 16 ++++++++++++---- hw/i386/sgx.c | 35 +++++++++++++++++++++++++++++------ target/i386/monitor.c | 32 -------------------------------- MAINTAINERS | 1 + 6 files changed, 43 insertions(+), 55 deletions(-) delete mode 100644 include/hw/i386/sgx.h