Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2050138pxa; Mon, 24 Aug 2020 03:48:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCtH7qXWpLTZcQVAGpB2uXgN9+fTVJGyp3jwDDntv/9zX3RlNnhnh2z2hSu3eEZlvFuaxK X-Received: by 2002:a05:6402:45a:: with SMTP id p26mr4992163edw.8.1598266108696; Mon, 24 Aug 2020 03:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266108; cv=none; d=google.com; s=arc-20160816; b=DcSGQ6etoGlk+0NV+R79zFZN1TjOAYIidkhK6Imec0VphtOz6dTv+zUmtvb+nj5kqi hf37CPHqHYkzqMx362HJfYPhrboTpniAtPCB9okyNHWWWGuMT1DBd8r4ImxQ8DX3Rgzf +BzWUC9gpSGHSDIZ4sUVJF9+wgRF1AcwGF0/yhWbqXqSvRbcncw1p1vTAKdNT/5Hdxwa jEFpFg3xkXfeSDROf8Pn/sT68tn55S2vTPEhQy9ZZTJzWJwwPQnL84E52nVulocMVKoB ne+Ry0yZNbh2pkDzf5D1vebtGxrjVwfjDbjhvJ/+ysZqMJ6xKKIOPlYy/SWu2DKFCc4s v8RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iXpxuVriWvU3M3aiYmzDwnWWzJtCErVklAPMKOlDAEk=; b=otySE/fZGMfEN9DSCZ5PDjPPpMZrSBTOTtiiFsVtCWfneHnUDklAl4/gMDwV3JCnLU IWZkc+TDjgQyvnvV9mlCyhWX5tzTwnKI/Xc0OJYJm/E0qzLAgFZDXpi+miagyqM4QvGa pi86w3CJItIB9gTrrdZcqfqxnsj25oH6QuxL4C6mj2CyruUzSwR7sEUBMCHEQNy/5bCV 7iK7NJFmf8CZpvkmMECM6oQf+54IpbM7KLu/PG6vKUuG4qDMyhwwyDHRs5tAK/S2wNPo DGRSgo4SPR5Kh/2Hvm3h4S2kMQWWSWb1Jlw+up1D4JzeRFiOX8Bgb0CkKT8t1qOKDWdC q1vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=fS2e3eFO; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si6302384ejx.745.2020.08.24.03.48.05; Mon, 24 Aug 2020 03:48:28 -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=@alien8.de header.s=dkim header.b=fS2e3eFO; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727110AbgHXKpS (ORCPT + 99 others); Mon, 24 Aug 2020 06:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbgHXKpD (ORCPT ); Mon, 24 Aug 2020 06:45:03 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58A6C061573; Mon, 24 Aug 2020 03:45:02 -0700 (PDT) Received: from zn.tnic (p200300ec2f07f0001d1adc8210ec988a.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:f000:1d1a:dc82:10ec:988a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D6E3B1EC0104; Mon, 24 Aug 2020 12:44:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1598265899; 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:in-reply-to:in-reply-to: references:references; bh=iXpxuVriWvU3M3aiYmzDwnWWzJtCErVklAPMKOlDAEk=; b=fS2e3eFO6CT56yvF10hoqjXs05VZge7E7YK1yU71Tg6skRgdi5uFdlZePV2aXb+A2JVG8w LyNrQAcyd0zTiPuZS95AOdUdLmUxPHPWU6WBmtTXBqKg/pnqunuyP9VEdcHY9yhudf1fd1 xRi8B0HFEmL11S+NQIPPeaaVRUJeIPI= Date: Mon, 24 Aug 2020 12:44:51 +0200 From: Borislav Petkov 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 , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v6 02/76] KVM: SVM: Add GHCB definitions Message-ID: <20200824104451.GA4732@zn.tnic> References: <20200824085511.7553-1-joro@8bytes.org> <20200824085511.7553-3-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200824085511.7553-3-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 10:53:57AM +0200, Joerg Roedel wrote: > static inline void __unused_size_checks(void) > { > - BUILD_BUG_ON(sizeof(struct vmcb_save_area) != 0x298); > + BUILD_BUG_ON(sizeof(struct vmcb_save_area) != 1032); > BUILD_BUG_ON(sizeof(struct vmcb_control_area) != 256); > + BUILD_BUG_ON(sizeof(struct ghcb) != 4096); Could those naked numbers be proper, meaningfully named defines? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette