Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1032418ybh; Tue, 21 Jul 2020 14:03:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhdfZOxjOXZsAk/S9+GakMbmtOKUnbyT0LMAjECFFOFGdsf8ZW7c3sglK2EbP+StOYfk5a X-Received: by 2002:aa7:c656:: with SMTP id z22mr28708832edr.101.1595365425376; Tue, 21 Jul 2020 14:03:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595365425; cv=pass; d=google.com; s=arc-20160816; b=mQeGoKZWewxzvCoXfo9ofnEyOWhLnfrqYpNhK9d3MeamwceiLfmeqAi9guhGlPlIUL gZck74CVHarcUzgYN5UqJmKU9pkxvVi9VzjbmTYD0Abk9qh/FaNrCkH8zh4dHiNDnFv6 erBcofMFZVPofflX5a3iUI1ckh+Zw5ESgj8CM6o9uevQ79wLA6Dx0a+0cGRHvyQV26Jk uDkSzIRoXHBzRLNjpZqhiOpMt2dWlftkedooHtie3VNY29nR9cFyjKEtsDwkoZyh3P8+ 9fvhCnxO7+gglsrQq4Carb6lZFlY4gKOwU4qnxVz3A+tMEaVGv9nAQbm3x3FHtYYIA3a MxGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=+V8S/SNWLMv/0tjR4P09/Ica21Z5Q2Ox4tBDJPV0ZYQ=; b=eEi0DFNEI1QTxUj9r2UcZMPQRl9T3QuJjun3jrU2c+2QpKy+TaNIxgJU4lOoqD2pE2 qcQRkaz0FHtZzrioOvcMb2qap/WT4qwr89czT3Gr1kSDPnJ99/i0+x/zbhYtXXpMoTmy r8EbvmuHcqkp1FXEppmuRUG5dBfol6CLg3/ZRvqostuNbCrpiuACwkcY2Cgo25ZSN7Yo 8h3O2YuWMrOzfL+xBRPOUcUAYLlRMelyRIrLr70ka79oBhAg6laD9IkOkMgnFM9FvvnA kxbJxA0krhpeoYXwx0EaJjpPeHoEptfnE9aZqm0LAsU3KQ3xxIASWEEtORPQDjDcIyGB x5Ag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b="KCcGQkn/"; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si12960192ejb.404.2020.07.21.14.02.54; Tue, 21 Jul 2020 14:03:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b="KCcGQkn/"; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731084AbgGUVBt (ORCPT + 99 others); Tue, 21 Jul 2020 17:01:49 -0400 Received: from mail-dm6nam10on2056.outbound.protection.outlook.com ([40.107.93.56]:29697 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726686AbgGUVBs (ORCPT ); Tue, 21 Jul 2020 17:01:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ET1yhNIwQyqU0V1gbOgKFxRQtTUQCaRjhsx18XB6Lx0dvyuRF82AR4sIo6MAn4WMAa3iHz7Ev6NBUJff/Datq6USSZRdTcOT7+hRcuzfGPxzUdwsUwktSlRBF8k5hpDZTu6RoDXn02TAwhrl4+Gpdle4/8zanWUW+82X2UvmQn3c24/SGyYCk8/ZtG/EQekrPG9XqkYhxXE3ALamunBqVChIiPnq/ErsDhDo350gClyBEMcq6njPthDhJtsjtYV2CVkFpRN4quaF9oHkdtoTzKlRJGGqAX3E0I0DMUCR/VCeehQWgHRHbFXq1mn9RNT4rNunYAc5KMDGyg7nEET7KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+V8S/SNWLMv/0tjR4P09/Ica21Z5Q2Ox4tBDJPV0ZYQ=; b=iDMwMT3MMKr7wM+0RcOb0yFnm6W/ZCcwo3XohBqzJGOWVavpOJk/rhsRTdkRZv6uHemh0A1HnFba4sDOgdGzRnCeYOEvubXkvzMFKV6fYxI49x5ynkiobbjxEfZ7ap8GaLagHSGOrzNW0oA2FS7qjEP1pOLOzaWYCb1vHMQQSjupBgiXGEyB9OaRt4EFtZ3PFWec0e8GHm+NGx5mE8+X75elSpsJjNH2t0nbt/rCcWNMs0hXb5zuIGhNJPMvGr/PR8nwp3t5pAxCEErtUu2LwdXBRNHCIpzunouoX+QGkYFdllQgaL7IWZFocQUo+Ovdm/krLf6PIWAv99ABXxVCMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+V8S/SNWLMv/0tjR4P09/Ica21Z5Q2Ox4tBDJPV0ZYQ=; b=KCcGQkn/H6D0uJ4hYsIM3XminAXEDrzm3LdKzCjmxBSdCTqz89GEwDtV/HEvIa+lpsk0n75kf57AkUJ+FQqWwzUVhE10wDNq6AfFyCROZRDLmj1xORGPP4ifF8eyjUOezODoklvpt8iX/W6qQ9Xz2SD/TTc6lGFYyhg3UnvPkVk= Received: from BY5PR05MB7191.namprd05.prod.outlook.com (2603:10b6:a03:1d9::14) by SJ0PR05MB7472.namprd05.prod.outlook.com (2603:10b6:a03:285::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14; Tue, 21 Jul 2020 21:01:44 +0000 Received: from BY5PR05MB7191.namprd05.prod.outlook.com ([fe80::7d2f:b4c0:5bd9:f6af]) by BY5PR05MB7191.namprd05.prod.outlook.com ([fe80::7d2f:b4c0:5bd9:f6af%8]) with mapi id 15.20.3216.020; Tue, 21 Jul 2020 21:01:44 +0000 From: Mike Stunes To: Joerg Roedel CC: "x86@kernel.org" , Joerg Roedel , Tom Lendacky , "hpa@zytor.com" , Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Sean Christopherson , Martin Radev , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" Subject: Re: [PATCH v4 51/75] x86/sev-es: Handle MMIO events Thread-Topic: [PATCH v4 51/75] x86/sev-es: Handle MMIO events Thread-Index: AQHWWdfdDTzyqLev5U6Jd/iJZ+m0yKkSkJaA Date: Tue, 21 Jul 2020 21:01:44 +0000 Message-ID: <40D5C698-1ED2-4CCE-9C1D-07620A021A6A@vmware.com> References: <20200714120917.11253-1-joro@8bytes.org> <20200714120917.11253-52-joro@8bytes.org> In-Reply-To: <20200714120917.11253-52-joro@8bytes.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3608.80.23.2.2) authentication-results: 8bytes.org; dkim=none (message not signed) header.d=none;8bytes.org; dmarc=none action=none header.from=vmware.com; x-originating-ip: [2601:600:9e7f:eac1:44f1:7528:2d31:aa97] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 66fd10c8-cf30-48d2-0b5b-08d82db9462c x-ms-traffictypediagnostic: SJ0PR05MB7472: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: v2GAPcSZkUSE2SLB+fvUUllRQXatIApzFturWsmYqnHhcLtouSC4k+PIA73CWYQWoQdxceV8x3DQjfOUi6bkg4YkovElZPNtBsLP0rhwRhkVJ0xUM8j8G2/jhkhjSlplFMTDyO3rfANfxGuG40ukLNaVbHN4ozVOcW2TFwu7fHpgt22k2umlrFzdQDl0Yzf/FHunVTgaS1dWKllyQ6ov2XPE3OUsU2zoi7NzYuL4bByU2wYVBtPWte+f/+4Q3/VuRzwIKSQSlKqDSa2hNCLwqLTLbKGSG5op+0rlUrQSpA0PhXR30Oxj4BlAcCedtAP7Fd58rCKCI2SA754StbDySg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR05MB7191.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(376002)(136003)(346002)(366004)(396003)(39860400002)(6506007)(53546011)(186003)(4326008)(7416002)(2616005)(6486002)(8936002)(6512007)(66476007)(33656002)(478600001)(54906003)(76116006)(316002)(86362001)(5660300002)(2906002)(66446008)(64756008)(66556008)(66946007)(6916009)(71200400001)(8676002)(36756003)(83380400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: d/aW2nUxMcOBiuVRKWyUtd2kod2IZ+VzKZlLf3yQsMGfuP53dU4OiRgTqEON2wh6nd1P9R9lAO5i5/KlG77JDuefNt6Qr0rj4qXz64PUefm2fDtN5OuxPRMXkMS4/auBbKmccdclqhW2B0UujRUB3nOeuG327Leng7Ptl6soFTvXZBYIires8Tnag80pLleCXaVUdmGa8WvuayH1rKTe76yL4O/cHMht359m4Rt95mEGVSYMf3XcTxDcWIFzexaD4K2dtfuzMXp2lgMtmTGZJLdRvKkC3hYdQRg6cH8EztOUsAZdgy9Iu3agwb+a5hJzw0W6hsuqraKkyh/hxZiWfCrkpvmVN142L1aNVeloEUCd9ucDLehqggmslC+izDqXED8p9kQ8dfNuQqvpzFEC5LJQ4u4YA/+49miFVl6tZRUUgzpOYh/8pXOX2F+pt6U97oQysUFJwQU5204U5fuUKeYcN3T++TLnb+ZKbXX6kmUwOk7c60Eeh7iqF4TQZARaWJqqLA1lrWTcz1co/h9KvIlb58yoodfVFRD688kgF9wk7mj8WlrNO7iIE51uEyRO x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR05MB7191.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66fd10c8-cf30-48d2-0b5b-08d82db9462c X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2020 21:01:44.0624 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BIa5w+c9eUC0JD04fYKB0qF83gLmT8ENpKnGaStamfuvLXGQ5eAeBxsjoS/K2Bbp1gRg5YSyIXTMpxi/rHc6Rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR05MB7472 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-M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