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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85856C636D6 for ; Fri, 17 Feb 2023 19:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjBQTbb (ORCPT ); Fri, 17 Feb 2023 14:31:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjBQTbY (ORCPT ); Fri, 17 Feb 2023 14:31:24 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57527604CA for ; Fri, 17 Feb 2023 11:31:20 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id 4-20020a05600c22c400b003dc4fd6e61dso1697689wmg.5 for ; Fri, 17 Feb 2023 11:31:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grsecurity.net; s=grsec; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=36c2t3bxTYAXxN1sWnIe/NpwPxNe7BvAQ4RverxEpho=; b=BujsuhQlQ/vmzD35Tq0BOi+ArpHBIxvhv5hgzCk/NIAlsM1Tb90KM7c67qp/QmSLPJ 0AxwBCHqXUfs3ggEhatYLFrjglhO0sU36azEhu/3OMIijcx3xL574kFCGFLxxU6XpM1I Q/jIxdJOwo0doZfssMOcGp2rb/c0z0xcQmtnp7o1tnNoXqZj6VloYMGP31Q/FuGp4A/l 7ul7X/Ocgot+UDJMM9+vCVfEiLEszCiw9ryRu7qhDNP/mpQYidjdkKHHwfaWDh4obey5 M/rD4+al+n06rkDrOMAJA6EV6c8IQP+WR5Awy3LYyOIaJ8ddlKmWQePE1g+2qzCtOVMb XxBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=36c2t3bxTYAXxN1sWnIe/NpwPxNe7BvAQ4RverxEpho=; b=5RGcsD0UExy9QGJ2B/9jUeW1e1A7TYBkrR2hrdK8ljb1AW/wWLwVo+0AlLwwe1Z/nt Jhpy1VD7bPVaxnVRHJiszBgzzcXD9i3ES52nwNNJQ/o3d0fQfh/XfIuaaV01yG2RSibD cQ29RdB6w0yClnZ/vwwYPgNLgd4wVe0XAEvwT7pn4R7i/69Exyw4nUcusBgSKhSzFYnH O1LvSJ23ptJcknbdiOcwolXsAvifHNpwJfia6jJ0+OpNIyo6TCBWwvlsszcPdqYsCZS6 jK5jpwUIrhzWBiHTFTeH62pZBCxcW0B/MrKr2yhDhGCiJZ4g22gBeYCPQMlSneWsqaR6 vs3Q== X-Gm-Message-State: AO0yUKWwqrFSSESeCZ+Dqda9SWQC3i20jNbCRbNqyG/t4gjVNgyXDGHf UfS4w/xd8nTPa6xlocM7mzaxag== X-Google-Smtp-Source: AK7set+Do8Oea3EiNpOBU6NsvYLWCkCaUZhItfU6Qy+K5HebfbKb0emwIEFSkUdueCyYckis503Obw== X-Received: by 2002:a05:600c:998:b0:3e2:20c7:6544 with SMTP id w24-20020a05600c099800b003e220c76544mr2530540wmp.19.1676662278862; Fri, 17 Feb 2023 11:31:18 -0800 (PST) Received: from nuc.fritz.box (p200300f6af465a00bfa0a0965e5e0d85.dip0.t-ipconnect.de. [2003:f6:af46:5a00:bfa0:a096:5e5e:d85]) by smtp.gmail.com with ESMTPSA id u9-20020a05600c4d0900b003e1f2e43a1csm5393618wmp.48.2023.02.17.11.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 11:31:18 -0800 (PST) From: Mathias Krause To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Sean Christopherson , Paolo Bonzini , Mathias Krause Subject: [PATCH v2 0/2] KVM: Minor structure layout changes Date: Fri, 17 Feb 2023 20:33:34 +0100 Message-Id: <20230217193336.15278-1-minipli@grsecurity.net> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v1: https://lore.kernel.org/kvm/20230213163351.30704-1-minipli@grsecurity.net/ This used to be a more exhaustive patch set shrinking kvm_vcpu's size. But we concluded that this would be too fragile to maintain and would require a more radical layout change to group often used members together instead of chopping off individual padding bytes. The remaining two patches are nonetheless useful, as they either make the structure layout a more natural fit (as for kvm_pmu, putting the version atop) or removing pointless padding (kvm_mmu_memory_cache). Please apply! Thanks, Mathias Krause (2): KVM: x86: Shrink struct kvm_pmu KVM: Shrink struct kvm_mmu_memory_cache arch/x86/include/asm/kvm_host.h | 2 +- include/linux/kvm_types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.39.1