Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1715799pxb; Wed, 10 Feb 2021 15:14:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJytCUi+la7uCTuDpimSsz5gRdp92cQRFthARSD4Kql3z8c8BVXLzFqJzvLIohsxyx4G70Tz X-Received: by 2002:a17:906:5d0b:: with SMTP id g11mr5299421ejt.542.1612998867487; Wed, 10 Feb 2021 15:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612998867; cv=none; d=google.com; s=arc-20160816; b=BBaQa8WFiQBQrHJtODk1zWSi/P/YizPAvcrzDluTo1MoLPRzywN9D5vCoSz2bozWff ma4BhAsKtu7tlSl8rtPZ6VfF6KCHB31+OXcKfEuwSoygFNksZpUx9xvdpYh8zvu8NpCP kg+W7vDfSBUfjf/w432vPcOxWcbUM4Bfyo5SoOIZlnez4gYIBXHvA4R1Nymj4qCYu403 JVhAMF78bjFvt0GbIuK+reK/1zTjNwUGxE85Z8FL0eNSbHNv6bsJWQcglM2VYsI3+MJa hBUJi2luGTMaIYACDcUvXCLu4e1ejjWLytv6WEkLMYzJ2KahRz/2zubHaYTUm+ijBjTg zqTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:reply-to:sender:dkim-signature; bh=9BlnMuser/5aLl05HhZkUCOrJicW6mziHT+6ZDrlT3k=; b=oGCWN5XWnVTh0HWbH9+Wv5MsB0ytv5QcaPcJUYGbakBTeqHqRaII/qlGgj3v1bpI0w GRcrbrztNdygpFmsvVU/4/JTOKJYxoUHSU9aNRvXbm2Da9N0j9o7u1F3R3hrILl41W/L DyIeVlauaGD5fcg/jRdruet8930+aZCVTOTP0/64/IWao0Zw57ArY6P6R2CD7pesdbdl HOili2hX532NutNDL5fM0vBBDAOa5p3OOOu5LpR2r4pe8vgAE5xCvV6kgpNg6q/Y9UEh OcranoXK2YxEbCLebEIMgRa3A3GSw4N6UapW3yHE5M+kjegTH0yHbFUkN9THKJ6MALwe CirA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="uD1oQi/X"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k21si2161584ejx.367.2021.02.10.15.14.03; Wed, 10 Feb 2021 15:14:27 -0800 (PST) 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=@google.com header.s=20161025 header.b="uD1oQi/X"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233786AbhBJXHW (ORCPT + 99 others); Wed, 10 Feb 2021 18:07:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233460AbhBJXHP (ORCPT ); Wed, 10 Feb 2021 18:07:15 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12656C0613D6 for ; Wed, 10 Feb 2021 15:06:35 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id x4so4236423ybj.22 for ; Wed, 10 Feb 2021 15:06:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:reply-to:date:in-reply-to:message-id:mime-version:references :subject:from:to:cc; bh=9BlnMuser/5aLl05HhZkUCOrJicW6mziHT+6ZDrlT3k=; b=uD1oQi/XgHbJocPshzs4uxf+8sEIkro4p5Pt6vXNMqYLjlqe7BKcGvmCkZmmxD9Q4T wXBY79Rz46BuMW3PGaUq8FwjrtCi1c/qtKrzgyDyLcqiIq0emOGRzByh+8xIpA30AyO1 UqAqut7h1XH1rAxFoS1xiNPsCEY/ehI2LbXTJsp0h/WscqbgmrvJdn8ZTQsZ8Q32sSLP fgRPATFHbio9RIPXxyyTS7V1Amf9fWGKySQhYk3dERXY4eqiRLIsVowri/OR/Rjo8nM7 1AFetEyynXOUZRMLhbm6oWjwgBURqLMxlQWlAGGWXy2Uk7VNnjh66h1TAdLSMg54Tuj7 R1NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:date:in-reply-to:message-id :mime-version:references:subject:from:to:cc; bh=9BlnMuser/5aLl05HhZkUCOrJicW6mziHT+6ZDrlT3k=; b=q9WM8vhaM2AOJl57Er+5RdXBY6aQRNnWBCSGxsbJlRw8xUtWfPDAcy3oSZu9tOULri LpjFJCidiVZLmMFUXqWEMsbcXC9mDVdE8hGUPs+td6qbGiRkcQagT0vWhF6Rpchfj9ab pUypnmqyrOS2ZZF3F8g0MLaYj+uVcy/vjyvOap6mAh2C66sifXv5fDwRZ/gv8BjyQOBz EWqTYUE/KAbOrgrAiUFoXTeN8iPG2aLPZobuUNOGfGPxpgdbNMM6zTHDwzprpNA/vuyO wnqMXZshuCuK4JZq4J4ElyC1wsU229TkPPxKkBUXvcTwAkC/AI7/+NekCwJrVanWbwjt i0Bw== X-Gm-Message-State: AOAM532HeofEGQyr3jTF82sRGXSe1RvYr0AuOD690EyRoUlYkcYxOT++ 4Etiu6g8H/dIfKh8GCV54NBgSSiQjjU= Sender: "seanjc via sendgmr" X-Received: from seanjc798194.pdx.corp.google.com ([2620:15c:f:10:11fc:33d:bf1:4cb8]) (user=seanjc job=sendgmr) by 2002:a25:4fc3:: with SMTP id d186mr6925674ybb.343.1612998394331; Wed, 10 Feb 2021 15:06:34 -0800 (PST) Reply-To: Sean Christopherson Date: Wed, 10 Feb 2021 15:06:11 -0800 In-Reply-To: <20210210230625.550939-1-seanjc@google.com> Message-Id: <20210210230625.550939-2-seanjc@google.com> Mime-Version: 1.0 References: <20210210230625.550939-1-seanjc@google.com> X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog Subject: [PATCH 01/15] KVM: selftests: Explicitly state indicies for vm_guest_mode_params array From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson , Ben Gardon , Yanan Wang , Andrew Jones , Peter Xu , Aaron Lewis Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Explicitly state the indices when populating vm_guest_mode_params to make it marginally easier to visualize what's going on. No functional change intended. Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/lib/kvm_util.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/kvm/lib/kvm_util.c b/tools/testing/selftests/kvm/lib/kvm_util.c index d787cb802b4a..960f4c5129ff 100644 --- a/tools/testing/selftests/kvm/lib/kvm_util.c +++ b/tools/testing/selftests/kvm/lib/kvm_util.c @@ -154,13 +154,13 @@ _Static_assert(sizeof(vm_guest_mode_string)/sizeof(char *) == NUM_VM_MODES, "Missing new mode strings?"); const struct vm_guest_mode_params vm_guest_mode_params[] = { - { 52, 48, 0x1000, 12 }, - { 52, 48, 0x10000, 16 }, - { 48, 48, 0x1000, 12 }, - { 48, 48, 0x10000, 16 }, - { 40, 48, 0x1000, 12 }, - { 40, 48, 0x10000, 16 }, - { 0, 0, 0x1000, 12 }, + [VM_MODE_P52V48_4K] = { 52, 48, 0x1000, 12 }, + [VM_MODE_P52V48_64K] = { 52, 48, 0x10000, 16 }, + [VM_MODE_P48V48_4K] = { 48, 48, 0x1000, 12 }, + [VM_MODE_P48V48_64K] = { 48, 48, 0x10000, 16 }, + [VM_MODE_P40V48_4K] = { 40, 48, 0x1000, 12 }, + [VM_MODE_P40V48_64K] = { 40, 48, 0x10000, 16 }, + [VM_MODE_PXXV48_4K] = { 0, 0, 0x1000, 12 }, }; _Static_assert(sizeof(vm_guest_mode_params)/sizeof(struct vm_guest_mode_params) == NUM_VM_MODES, "Missing new mode params?"); -- 2.30.0.478.g8a0d178c01-goog