Message ID | 20240710234222.2333120-19-jthoughton@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBFFAC3DA42 for <linux-arm-kernel@archiver.kernel.org>; Wed, 10 Jul 2024 23:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=x2NbmmZjpjJMl8d0fx4CDZHX67FcpWijiAzz4EJchKg=; b=4+z8Cl68oJQkmLAEnhzPRt8COv 3IHHaNI1vs0PCN6GnI2dhnHWWA9Sc8NU2zmtNE6F1e/aRVTe0PUunXnMqqOBX21AMO2HqhsRYN4gC wkbYwJRfR6+avDYgDACYRHtFT2eWYth2SN6aUIkRTjx9ar+0bWU9/LwsVJgBst8BMSSbagKcj9Xjt DMhDxIJ0lT8oMP5n5iX2nrXBCn/BCDs48FdnABP69XGiUd5q1BpGCYqJPT+2H7hanirf5ghI+A0dj GnHGPzFeqHa5LY0XERn/UWCzMYhyTOE/YkgI1J+yEJAbIdOUftgc2sA18OSgoSMNdY8TTJ/2pJQfB kksyEv1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRh2e-0000000CA70-2coZ; Wed, 10 Jul 2024 23:48:08 +0000 Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRgxc-0000000C7LW-3chQ for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2024 23:42:59 +0000 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-655c7fa147bso4939947b3.3 for <linux-arm-kernel@lists.infradead.org>; Wed, 10 Jul 2024 16:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720654975; x=1721259775; darn=lists.infradead.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=x2NbmmZjpjJMl8d0fx4CDZHX67FcpWijiAzz4EJchKg=; b=s1cjktjUiuGTt5KnBRY68i2zIFGEqH8qQBUsM2LxvnwLRr8POil1fbTfFDfneNXPZU pZCfU0Xp/a5TpXYcSygM8m+tiKyrHmyuzurdlyddavCSmt7HkQKzlJ5OBKj49SBxO2Uh Fx0M9aMPrWLYmwSb64n8VnaWJLP2jT7S/OSpfxMLCI67+G/RFVPRfGC8IK+bVWOXau88 vQFAmHPNJvhtBOX5LQuPnqpaoyfHS9+0OQMrV5CwmDXKiGW83bA/58nBi9leLOJaKyLs zFWke8qwvyySCF6vUSxxz4URClMuInOrcVGnT2i2pRtRb/IMJOQE7tnrOY0oCOqkX1jS vxhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720654975; x=1721259775; 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=x2NbmmZjpjJMl8d0fx4CDZHX67FcpWijiAzz4EJchKg=; b=SpOVPQirzC2ijCeiB+w6Drx1jaYxK7NgbCa6BDho82bwGcNBHxMFYyYgZ7oxPzIHUx DkAzGkF+ac4inB095AJslj2U2ey/57tyzAemf2nOfMk9p6nEPwTmk3gJl/5rEBwVwsSa u6n4I9ZBwfx2h6V54j/NyByQIe+vti9ZWO8NRu2+xZw+LQs2vVRaGtJF6Q7GcBZQhlUn 7gGiHflNMZDomnbvHlgnpRTkWAomtDxjSFjWbOYbdtpHoSnmLUEx0mescmGfn1xh174P dNVnFvp/uh5Rj2x0qFPcoxN2n8dXekVH7dZaa5R3IIuxUY64W8p407wvmZ0wT3qXdyzQ dCjA== X-Forwarded-Encrypted: i=1; AJvYcCVz2juJ/SrHIqeJJ5vprHe+yWc8CfEHITPYXY+kHl58Oto02abbPHXZUr66w2t2o9B+YO0npN7oUE5Xg/4OnrKN0g3U+KjCez7yjA1gaNEvoI3iHiI= X-Gm-Message-State: AOJu0Ywb83PpRBA9/DOkzyWK/aKvPNaTqADSUXrD7Qt2mXumCMcKGjXE T+nUQdCK/WVS9/hIfb1XdrxMTJTIxEzNQp7hbBI9vwadh5sPMfIA3JptbGRNKXzeoODxOK488HK IwZo9W7ND6l43UpEZrw== X-Google-Smtp-Source: AGHT+IHxJ11Jc4Pg7WkmO3SlYHVbY6IW+Wqfxro8+OBFjX0tT/erDtqX8VfrApEznbWBw0W1kCfLjttZO6MW2F1P X-Received: from jthoughton.c.googlers.com ([fda3:e722:ac3:cc00:14:4d90:c0a8:2a4f]) (user=jthoughton job=sendgmr) by 2002:a05:6902:2604:b0:dfa:8ed1:8f1b with SMTP id 3f1490d57ef6-e041b039d25mr256249276.1.1720654975664; Wed, 10 Jul 2024 16:42:55 -0700 (PDT) Date: Wed, 10 Jul 2024 23:42:22 +0000 In-Reply-To: <20240710234222.2333120-1-jthoughton@google.com> Mime-Version: 1.0 References: <20240710234222.2333120-1-jthoughton@google.com> X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Message-ID: <20240710234222.2333120-19-jthoughton@google.com> Subject: [RFC PATCH 18/18] KVM: selftests: Remove restriction in vm_set_memory_attributes From: James Houghton <jthoughton@google.com> To: Paolo Bonzini <pbonzini@redhat.com> Cc: Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Zenghui Yu <yuzenghui@huawei.com>, Sean Christopherson <seanjc@google.com>, Shuah Khan <shuah@kernel.org>, Peter Xu <peterx@redhat.org>, Axel Rasmussen <axelrasmussen@google.com>, David Matlack <dmatlack@google.com>, James Houghton <jthoughton@google.com>, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_164257_028166_BCF5C592 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
KVM: Post-copy live migration for guest_memfd
|
expand
|
diff --git a/tools/testing/selftests/kvm/include/kvm_util.h b/tools/testing/selftests/kvm/include/kvm_util.h index 63c2aaae51f3..12876268780c 100644 --- a/tools/testing/selftests/kvm/include/kvm_util.h +++ b/tools/testing/selftests/kvm/include/kvm_util.h @@ -384,13 +384,6 @@ static inline void vm_set_memory_attributes(struct kvm_vm *vm, uint64_t gpa, .flags = 0, }; - /* - * KVM_SET_MEMORY_ATTRIBUTES overwrites _all_ attributes. These flows - * need significant enhancements to support multiple attributes. - */ - TEST_ASSERT(!attributes || attributes == KVM_MEMORY_ATTRIBUTE_PRIVATE, - "Update me to support multiple attributes!"); - vm_ioctl(vm, KVM_SET_MEMORY_ATTRIBUTES, &attr); }
Allow the test to run with a new attribute (USERFAULT). The flows could very well need changing, but we can at least demonstrate functionality without further changes. Signed-off-by: James Houghton <jthoughton@google.com> --- tools/testing/selftests/kvm/include/kvm_util.h | 7 ------- 1 file changed, 7 deletions(-)