Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2728362rdb; Fri, 8 Dec 2023 18:30:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHijZUoqOb7x2xmMLTjZj5CnUAiigs5ES/wKV71n7LRffMIyDEbnU5v94BHdt4CRgJQmjS7 X-Received: by 2002:a17:902:b198:b0:1d0:b24b:bc32 with SMTP id s24-20020a170902b19800b001d0b24bbc32mr934101plr.120.1702089015411; Fri, 08 Dec 2023 18:30:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702089015; cv=none; d=google.com; s=arc-20160816; b=y1TBw7tDeqN2w/wnr6kSvHfZPnVoXdWvOxXPjz11MBeieSBJc//I9tmnxERmSpUJyg 3u/wXXRzwYgycz4OwRAwWuFGRRECTCgD5w7PJIz3Yyv4ZG1eYUFAxxmUAQdFAD/5/1NV xV3sr+8sWoqeT9G2YyUUx2Avu6AoGA5Cb3U+yQw8+OtRFVC/gbqzoXUXhSHD6lRIk9V8 e8DpF2GUWrUGWtqiH9XozyQg38dZ31sopAu7WnqCz0NZijUqcser7oe0aqLAkHF5+7LP vnPDjYCM362EfmOjT64buvbJ12xte/GQ2F7Pgp5TyPBegeb9wo3XSk4edkpJDgvBrG15 KZKg== 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:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=4KmejgukXo7m764qqW7DNGExe6RkwfWGfLJnqMZhyJs=; fh=lHJvsb5Xio+XSXuzkn2gawhVzi2spSlrMVggoiV67uM=; b=uOcaS/Id4QqhPUrFl8evgWBp/zjGTnmrigFxx+m1uwlf5OvNRqhNzJJpFXTbApIPSu XpBo/9cGBPfgDRZ1CoqyeKLtFM9v2eaPz18vAUwMv677aWHNXjzI/1vJdJPcMd2VWild mXtTcwRp47PCaMeqWG6k8EmoZejCXC85b6VgkEK+dSuCiMLlr2vJuzK+lhotaciv5NmL MfxmxDm5Eg4/R3OCyaKqE2qvUAkjpv4zAud6lGqPOn+V15iVnx4JTCz64RsfcGVf7KxU ywQgM5bMuK7mPB0hsKsHS+ji2Vrh16NtY3o67HiBwIuOfmS8jDQ0lin0Xv6hJKrVKgsv s9zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="nuDb//m6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id jj22-20020a170903049600b001d060d48fa7si2399085plb.399.2023.12.08.18.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 18:30:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="nuDb//m6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0E5F883AEE2D; Fri, 8 Dec 2023 18:30:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbjLIC3o (ORCPT + 99 others); Fri, 8 Dec 2023 21:29:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjLIC3n (ORCPT ); Fri, 8 Dec 2023 21:29:43 -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 45CEB1710 for ; Fri, 8 Dec 2023 18:29:49 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-db547d41413so2306616276.0 for ; Fri, 08 Dec 2023 18:29:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702088988; x=1702693788; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=4KmejgukXo7m764qqW7DNGExe6RkwfWGfLJnqMZhyJs=; b=nuDb//m6XLvqeI/HIhB+wXYvF153oPs6aZ5hXK2s9jrSa1pjNPSkKvpo5QFQBGD/hr 4J5pxT6Fbj9Kz1eNEEJQEKO6XiVLj82NCRVDA9l8F9h2gX/s9I9P8I7NRSNrQgvYCM2/ yj3YGiE/zZ7tTpbyUK1kXSv0NxT6uaKmF8jDXcG9WhocwwhgIiWHp+6DSCt4SOxCPwac T4mpw76lFeQ0ZRigKXOjVR4vCt/X7tX9sQ3X9aSMROSPUwtR7fmanRYzOuPp9lpUUUJW u1yV3Aingvoca0fa5zOucDFI/vW6rYtPIDtOFrTqjbuxx8A2AGJGNkl7gIfnSxEDJNBI Wqxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702088988; x=1702693788; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4KmejgukXo7m764qqW7DNGExe6RkwfWGfLJnqMZhyJs=; b=JVZn17H5ii5o/xp2tQTJ+nSzZqrr2wk31W4QDKOl7skH6pgNUThYZRzjdyuM4SNOz4 0AJ8mforLW3vuYzXVhgztbAtD59VeK3/t0RRXU4F5Lc3Px5Nf7r0M3rc3HznHfdWbHbB D3aUlQVifGIaBTqkxFxy/YKHT8Em8Sz61EfhrShGHKem7au6QsE2RC927TUqKd57njL7 EUX4/npRqQ9ZbhAERIHYpE0t3yI+9xQ2itMQyDCGIcm01dVH9DhkkYEbWz97HSVuHWJA 24Kh09BaGNY3dHGYf7kry7iq0xIuiG/LgFM0AKsxyW2eTBfgAojFATtnODq/7u5+cVEX yOhw== X-Gm-Message-State: AOJu0YzHJzmgs7CpbZqGx+OVlIzZLg+jrbqcCJhMi0eLcwHe+gp3Tu8n lZDs8R7fsjKun4lxWbJ8nL+FFOwVBKA= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:14d:b0:db5:3aaf:5207 with SMTP id p13-20020a056902014d00b00db53aaf5207mr29309ybh.3.1702088988456; Fri, 08 Dec 2023 18:29:48 -0800 (PST) Date: Fri, 8 Dec 2023 18:29:47 -0800 In-Reply-To: <20231208184628.2297994-1-pbonzini@redhat.com> Mime-Version: 1.0 References: <20231208184628.2297994-1-pbonzini@redhat.com> Message-ID: Subject: Re: [PATCH] KVM: selftests: fix supported_flags for aarch64 From: Sean Christopherson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 18:30:13 -0800 (PST) On Fri, Dec 08, 2023, Paolo Bonzini wrote: > KVM/Arm supports readonly memslots; fix the calculation of > supported_flags in set_memory_region_test.c, otherwise the > test fails. You got beat by a few hours, and by a better solution ;-) https://lore.kernel.org/all/20231208033505.2930064-1-shahuang@redhat.com > Signed-off-by: Paolo Bonzini > --- > tools/testing/selftests/kvm/set_memory_region_test.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c > index 6637a0845acf..dfd1d1e22da3 100644 > --- a/tools/testing/selftests/kvm/set_memory_region_test.c > +++ b/tools/testing/selftests/kvm/set_memory_region_test.c > @@ -333,9 +333,11 @@ static void test_invalid_memory_region_flags(void) > struct kvm_vm *vm; > int r, i; > > -#ifdef __x86_64__ > +#if defined __aarch64__ || defined __x86_64__ > supported_flags |= KVM_MEM_READONLY; > +#endif > > +#ifdef __x86_64__ > if (kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(KVM_X86_SW_PROTECTED_VM)) > vm = vm_create_barebones_protected_vm(); > else > -- > 2.39.1 >