Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp19756rbb; Fri, 23 Feb 2024 10:17:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqO2lTFKs6Hf5Mp1kNu8Yhb/lHXJmEPi7Ue+i24O3VH/l51b0oTeO002J12wDEfM2Xt55+O9WlIc3GwUgX5pziO8xSDQ1QGrMHCq7Qfg== X-Google-Smtp-Source: AGHT+IF2eNArb6o9g1dQE6TcDTqa6imZE3RO2e2wV3r3iD1LDXM9TXGcctVbmy5gTv9CCKzm/XZm X-Received: by 2002:aa7:d384:0:b0:565:983d:7bbb with SMTP id x4-20020aa7d384000000b00565983d7bbbmr59129edq.14.1708712242407; Fri, 23 Feb 2024 10:17:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708712242; cv=pass; d=google.com; s=arc-20160816; b=iglnfk2H098WQXAPNQuIFM96GzqDf7w2uFfGjVR6cJJfThP/abPmbKIiDmdtI3fDcq vREmUmM8xSxkKtIhP6eSWmoBZOZoPj8pIm8e95X4TtZf3d1ePVxEkkZ+aZkWWgyGzuFM OLpTrJfEEEWcJQTHIqo3QbfyO873YTs+zPPQCwPUK3/Cf8T2VzL+Y+Vai7lDhmr2XrJz l5kmQkziqKusFgaSUJ8Xwy+dRL/h4ULmeZAxZuexH98cqkBPdYQvafpkeh84Qj7KgU+x pZS443+kP+g5cOQLcImXOCdO37MNrAkyp9Bin8bN1zohsjIKmWvB9Rv36kjFraXHHkVn wE7Q== 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=gofRIUedDT/xKc1ubX52tMH/cpYoaQz6NlKbBcrt6+o=; fh=9V9AcezlryIJj3VR1FklH2lmj1OLl3Agdk8L58/X7gI=; b=tAfKS62LQiGxh2fumvq/ifDaSZhWf72gnaegthhTLEOVjURmjb/NR2vt7qfJKND4zb e/CR20vjUk88OqLeLbUPKvbz6pZE+R1oXC/SlWG2KKQSX5Kn5lyXRiMhIgMge4iDkuJV m27hJ7fIcLp489UiqBlwyxrrClo7ljA9c7Kmn82yRXQspAbgneHcYUXqeUYIfNq2bqDh j+662nrHMcmMPv35Qm4dePMAPsMiwT3lWWy5nNv/+UPqqOJbcmMRP5yjsIJYvmMoqv5s 5Pxe/QQX3jR744rU59CNVW0pP01yW1xPl4HFthllviWqYn7gCCdDUwBiwkLyZRiBvRbB lMlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="4K/GDrfG"; 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-78961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78961-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p12-20020aa7cc8c000000b005634711b1b9si6357131edt.153.2024.02.23.10.17.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 10:17:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="4K/GDrfG"; 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-78961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78961-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 5B3A71F25786 for ; Fri, 23 Feb 2024 18:17:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 461CF1448D9; Fri, 23 Feb 2024 18:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="4K/GDrfG" Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.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 326131448C8 for ; Fri, 23 Feb 2024 18:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708712151; cv=none; b=rslN0htKspvzhOXmzXrMX8PJUOT+iZMZRL7XD39eDVp9AhaGhJeUSz7N70gnqVn/lnsU4VlxeeimGFP3GP70udB2T5oONdrYCLG9nkCOpPB7xdc9vH0nLFnKTufKfg2Iq6NcZRam7JbKW725OhGwyeBLe0x4txFQ/huo11jrhfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708712151; c=relaxed/simple; bh=TmOB000kb/6C0zV1Tjn3FDWwgSTMgtlcQPywExWS40Y=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ab3Gew2sOfvbmOz+0cEWUQhOXTrRmCxQMiGYCL0gwUjXAYbMb/EnPjVIWm0DUugeLUbXIti6FPIeL0F5JNgY8nCF24S/TIKrhjwJP17XpHN4tmkq6CpZUVXj+WtiFBwGJLaXvpB3SkaKWRLw1AUcKPZlVzWQn4rp90TpocKuZYQ= 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=4K/GDrfG; arc=none smtp.client-ip=209.85.210.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-pf1-f202.google.com with SMTP id d2e1a72fcca58-6e43ee3f5e5so844471b3a.0 for ; Fri, 23 Feb 2024 10:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708712149; x=1709316949; 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=gofRIUedDT/xKc1ubX52tMH/cpYoaQz6NlKbBcrt6+o=; b=4K/GDrfGXSy3PX2UnKUkv4g9jMc3Yw3IHr/gytYLl0sLA/v0UVdlaPNKJcXFMFaOrT gARteDaNNhtoizZfN+Vf16rGmlFMoOTjnIelZ5Vjb/6cQBhlwNuBD48kB7Pv5ATIY/Nj hfOIz3ZUxNt7I46Rqhp+IjSSGxVf80YZoMcoV30SPK9OD8azaco7cFPg8BNKE7DBdVdV Ngef8Gm6GZy2lCqFWQU0pPcezitPPVHXWoPG8CwCjsDi+Ll8bj//BsG2t14P2zdUGgRI upxJ8TK+X6HlVG2fvinx4o7QAkOzqHFNAQ4ftxxMWW2gI8CkhVoAGV3niV1oqJc3AFS8 JFDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708712149; x=1709316949; 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=gofRIUedDT/xKc1ubX52tMH/cpYoaQz6NlKbBcrt6+o=; b=BYPK5Q6nPQqrwd42TgHz8jfHsr9hCnSmF3V+tqoBwnf0YMgyXRKim+Dp33BV+1Mske AG5qFprAwHIxxav3gAbTp8kIBu18llJGApoOmBfDoD1NXzR18DLAmKoaxByqDWN0EM5R ZuF8HWsGDYS69ghktDsSYLiYSUUy9s5UvMJEi2d3QT66nuaFZU1DtFgZ5p3/hFQd/p7M hlbWsDp4wVcSGfbbfH3I78GzLQhtuguugN+7NvEBLeWbBNn8Pr55mleKL509/1xqorbt Oym3lnzVqJreR0U5+h4WOua/DN7uGP2x5w4kg4DnHGd4s8WxeL0/GKh2ISRp+wywSet1 vl5Q== X-Forwarded-Encrypted: i=1; AJvYcCWtQw/VULIToMUTlBu72l7PtRWLfPAPBwutR2FaFlpoKh0N5U94I7chqjr9vIGb1RncZ6ovyJqPMnoCjJu+SEKlrlhJ3XLQ6C1Ar/eE X-Gm-Message-State: AOJu0YxG0IzlbzKEZe2UcQppOJrCrmxJN1umSe7vuFbOMaLPgfDUzIBy WsOP4xGkLMUkQoRVHthQiNkyxDpb9W/1gxbPvoEWSTjT8GbI97hiKnNWHD7STZMCvgsO6WwK/W3 0KA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6a00:9298:b0:6e4:67cf:fa03 with SMTP id jw24-20020a056a00929800b006e467cffa03mr42271pfb.4.1708712149448; Fri, 23 Feb 2024 10:15:49 -0800 (PST) Date: Fri, 23 Feb 2024 10:15:47 -0800 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240222012640.2820927-1-seanjc@google.com> Message-ID: Subject: Re: [PATCH v5] KVM: x86/mmu: Retry fault before acquiring mmu_lock if mapping is changing From: Sean Christopherson To: Yan Zhao Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Friedrich Weber , Kai Huang , Yuan Yao , Xu Yilun Content-Type: text/plain; charset="us-ascii" On Fri, Feb 23, 2024, Yan Zhao wrote: > Reviewed-by: Yan Zhao Squashed, new hash below. Thanks! [1/1] KVM: x86/mmu: Retry fault before acquiring mmu_lock if mapping is changing https://github.com/kvm-x86/linux/commit/d02c357e5bfa