Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1390022rdb; Mon, 19 Feb 2024 14:07:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUDTI/9BYmX3OL1P3agpIJc/HbEtJHaqhiqkz2NhKLj55c8TQpWSTgRmKyOGPvR8RFb8r9menCM01TQuKF7ZPhrtiX8PsGut8ciQEsPZA== X-Google-Smtp-Source: AGHT+IGTVQdq6M3+y7Jba2G2KKNtrhIt6pcPPUJdOSBm1CyoGBqf9dD2HODKdu54dpgnWagRun/d X-Received: by 2002:a17:906:6d48:b0:a3e:8f0b:ca49 with SMTP id a8-20020a1709066d4800b00a3e8f0bca49mr2470116ejt.74.1708380429468; Mon, 19 Feb 2024 14:07:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708380429; cv=pass; d=google.com; s=arc-20160816; b=YEB2YI9bV1JoJHtVukk3IoXAtL5tBw4Fnfa2K9ZOmMDfeR4IzMQDRbsrq6aRJS9cFU hoc2LVPyyPhxnB445wMDJNhfEQSl8yWtkYnQf9sEwgO1RM2Pm8hhBPz0wHqeOdXYhLno ZXQpzqgqJnbSaOqVxduxR13sk+hUHMPUvzOBlohfjm3QjdNzmu7KGCX+ly+puq8h4fmg ZHFWjv/HztW8SmOSOcZAQVGR5GtIkiWsmRnfpJQvhhdH4V5G7P4ekPya6XqgXxkdn655 5ddO707UNBfzRfRkwUgadVwacM8wafyBeVNqRqcdfrMdy/6roNzBnWow3jDKqH3Kcb0e ZN7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=mpOEZIVxoohE3GrUqHhwdrDwGh8LEXRlOdsMaQjdYhc=; fh=sodX9DbZfM2ZjXJmjIUyEawDJxHGQZj8j9et0QRfBQs=; b=zR53+c4Lw1UQXtmr4QVwrgNUtClsfhhDFDNiPRKc8WeDfSameQ3wb4zC8PawaHD7aP JaEC50WVQ3fmeF2Rbl3LJz8nj/lZUGWd55Vq7NFW1uO1SoH4Sj6JUhbeRGmBLjINOCZ4 1tVTb+S2r36phfySB0+NmHrnnQxIEG4+jYwlJbnMquP0/u4iLrtE4AsN8FkgMN08bwEG LSr7CBB9i07Fd3fKIL5DSguiCpGGskuCobfw4ApVFFDG3BRCCAeL6JYJsWZgzfJUHd2j PUEpaqe5IJdCCt73DJUxIwkSiYC4y6NHkcPO/l8bVcRkOIwZti+B65LiKA9zl5F0AHYa z9BA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=oGP+GQB6; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-72042-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72042-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gt19-20020a1709072d9300b00a3e99e702d8si1214714ejc.721.2024.02.19.14.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 14:07:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72042-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=oGP+GQB6; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-72042-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72042-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 168621F225EA for ; Mon, 19 Feb 2024 22:07:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B836655787; Mon, 19 Feb 2024 22:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oGP+GQB6" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29DE554BEC for ; Mon, 19 Feb 2024 22:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708380417; cv=none; b=coomKdy9isw3Ge56CPr7Ahkr10IcGT+6mgYZLFuynwn6n4cawn0sQ6YsoMeUfX+AZcfd0XLLTBso1I5ZkjCi6MLNTrJRYu/NweN7I4EtcQvdluhuagJFEDrp22BCAz6b8A4mdSKY91XUWj3J+qTf8We7IzUi5eTwpvG7hpIEmUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708380417; c=relaxed/simple; bh=l0HvovpPqMVUQu9B4ZqhpUtqDN71UcjNp3KMDMRYNP8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=BN1FstMEgqTM+lDdiF9DetT71PokVvH+XU3e9ObRkaIjoTL26y5DOxtDZu0YMPbSd/+tMPXMzTow7c/SR++bpcFSpJL1vC8hvXcemsyWVTGxSF155+/pGzhUV62ZaVvALHwgnPKGMVcLp9Tg22YMAQZTtJY7V8b45+KvGVdcxBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=oGP+GQB6; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc6ade10cb8so9811504276.0 for ; Mon, 19 Feb 2024 14:06:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708380414; x=1708985214; 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=mpOEZIVxoohE3GrUqHhwdrDwGh8LEXRlOdsMaQjdYhc=; b=oGP+GQB6s2Je7VhzfpYJba2+bM5S9z+eV4RJaJFUN5dWI8Tivumk/t0sg/aOroXc7r 29vAAfGLHIWGzvb1+A/6TUuFoyXKyYmnorE/tru2PjJoTGHHQW+J3+0EENgOM1U0Fk74 OzzIPNe4OWGIvlDgGSxJW1dpRYaaqylFAy3Ee5wizVqs/rsoCecfT1JfUy3cz53STMix EfEtLuUpTEFjV60iB8pztpvkhV8TApvaXGeNUFktmzrvu56LMgoCIaC8+fyyDC8oU2Tp 7KCrtwNqDVrWj24E6lQ/IQ+wWWA7APUXSPwLNZsba9cAWMgAewtpOLK8jUrINYc7YZu3 Krow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708380414; x=1708985214; 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=mpOEZIVxoohE3GrUqHhwdrDwGh8LEXRlOdsMaQjdYhc=; b=ZeY9HV0TGiD6n6dTt5nA1gCvhJPz+WbNzlfW1BkefQb2SDOBxpTWluFwHgNJ/bNVG+ 2GiIqCLrb4vZkrZ+nRIenS0xcn3TqBuGouvTV4TjvPMPq+9IH7cp3ssGDSngScZ0BOwb kuNt4N8+Nl/N8UFMa3nABJNX1oohEsn11IWnCM54TzDXkhw3mildnoPmEqX22K4fz9mW BRzb1CMUYoDoz7Q9C9qmWdLM5DSHbl163h9R0E6/xPYrwoqPPz6PKqgPzgftSXuqnUVj fUuhwjCew/YP5RSRoaeP/giQ95QceojfvKy8jFtzEnZ3hwEDfBpFYDs0yb5EOCEj9x0o sWag== X-Forwarded-Encrypted: i=1; AJvYcCXfCc25A5Jaw8DmtwnRXzKTvfeFDACvaZFglCdsrNa0DhT6IuC5P4qzOQ8NPS6kTyXAFjORpPt/+sOM8SWTN/ldBq22iBGEiVIoG7lF X-Gm-Message-State: AOJu0Yw8ZzKljwUeFeLCVUOCxyqgP7k5rDUvxuybXSDtRtccAwLTQTvi wRoF5BgwZeSvM3uxoUj5kyci4DUskLPA5Ht+ZKTHLsdnJVKlQM1PTzdAAQx+6D/3Qeq0kGDUp1c CxQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:120a:b0:dc7:7655:46ce with SMTP id s10-20020a056902120a00b00dc7765546cemr4267897ybu.2.1708380414286; Mon, 19 Feb 2024 14:06:54 -0800 (PST) Date: Mon, 19 Feb 2024 14:06:52 -0800 In-Reply-To: <20240215152916.1158-1-paul@xen.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240215152916.1158-1-paul@xen.org> Message-ID: Subject: Re: [PATCH v13 00/21] KVM: xen: update shared_info and vcpu_info handling From: Sean Christopherson To: Paul Durrant Cc: Paolo Bonzini , Jonathan Corbet , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , David Woodhouse , Shuah Khan , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Thu, Feb 15, 2024, Paul Durrant wrote: > David Woodhouse (1): > KVM: pfncache: rework __kvm_gpc_refresh() to fix locking issues > > Paul Durrant (19): > KVM: pfncache: Add a map helper function > KVM: pfncache: remove unnecessary exports > KVM: x86/xen: mark guest pages dirty with the pfncache lock held > KVM: pfncache: add a mark-dirty helper > KVM: pfncache: remove KVM_GUEST_USES_PFN usage > KVM: pfncache: stop open-coding offset_in_page() > KVM: pfncache: include page offset in uhva and use it consistently > KVM: pfncache: allow a cache to be activated with a fixed (userspace) > HVA > KVM: x86/xen: separate initialization of shared_info cache and content > KVM: x86/xen: re-initialize shared_info if guest (32/64-bit) mode is > set > KVM: x86/xen: allow shared_info to be mapped by fixed HVA > KVM: x86/xen: allow vcpu_info to be mapped by fixed HVA > KVM: selftests: map Xen's shared_info page using HVA rather than GFN > KVM: selftests: re-map Xen's vcpu_info using HVA rather than GPA > KVM: x86/xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA > capability > KVM: x86/xen: split up kvm_xen_set_evtchn_fast() > KVM: x86/xen: don't block on pfncache locks in > kvm_xen_set_evtchn_fast() > KVM: pfncache: check the need for invalidation under read lock first > KVM: x86/xen: allow vcpu_info content to be 'safely' copied > > Sean Christopherson (1): > KVM: s390: Refactor kvm_is_error_gpa() into kvm_is_gpa_in_memslot() > > Documentation/virt/kvm/api.rst | 53 ++- > arch/s390/kvm/diag.c | 2 +- > arch/s390/kvm/gaccess.c | 14 +- > arch/s390/kvm/kvm-s390.c | 4 +- > arch/s390/kvm/priv.c | 4 +- > arch/s390/kvm/sigp.c | 2 +- > arch/x86/kvm/x86.c | 7 +- > arch/x86/kvm/xen.c | 361 +++++++++++------ > include/linux/kvm_host.h | 49 ++- > include/linux/kvm_types.h | 8 - > include/uapi/linux/kvm.h | 9 +- > .../selftests/kvm/x86_64/xen_shinfo_test.c | 59 ++- > virt/kvm/pfncache.c | 382 ++++++++++-------- > 13 files changed, 591 insertions(+), 363 deletions(-) Except for the read_trylock() patch, just a few nits that I can fixup when applying, though I'll defeinitely want your eyeballs on the end result as they tweaks aren't _that_ trivial. Running tests now, if all goes well I'll push to kvm-x86 within the hour.