From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 A76E82561AE for ; Fri, 25 Jul 2025 22:07:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753481252; cv=none; b=T/il3vau8ebP6zdIzYeUZ5s/JG905k/VTBcrvg5Z5uHcmwWT8QrqYKvAVriR8XRTQAZeB6gjrUuwyj0UkG94gcG9XsIg0T/XiqTLWbuZFgy2t3/voZauwsPKDbDhzJLyzDrzDx+1EhJZlhCPs+4Yuz8uqfmyJsYCxd0+UR9aqbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753481252; c=relaxed/simple; bh=fTDYV6W4LbKflQ4abZjNwAYJA3G8xvjNOYFPDnAdaSw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=oB/UjZFq+PE0hVk/RjMkZNn9xsJ8iBL8Ru8nK5smcwcnTPAMVQKN8dYODUXHrJomWF48sj1zpv4kwAM4v9dtXolAT0C8bAgH1eXBfd1mZpY3BCpy0n2x3fqDNGmWKONAer8dLnnuwnBfNr5UhTYS1ihtuxs9QaYO+wSig9JS8vM= 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=0U4lHNMd; arc=none smtp.client-ip=209.85.216.73 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0U4lHNMd" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-3132c1942a1so3826434a91.2 for ; Fri, 25 Jul 2025 15:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1753481250; x=1754086050; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=5Y6htonD57XDXz16V1OAQINLlwnqllG7sgUgB7CHnHg=; b=0U4lHNMdeW+2qHfa40E2N+paPu4M1u0zi2wKRooJTezhU9udE8tBmjYDNu+y6OGoPC kA2VJR0tnPYx9AhxSdeXLKUGcvtUijnsbAEOqJnQIrHdi0tTfuK9eW2gXjHjPzmJvUDU jHiqvYEGajUcRQ3gDkKvuV8Wd8WF5BjcCyrWZWliSVic+wkrAQnXIVRWnlo2g4UxW9FK ZZgRar+u1cldN4pkAT7HjyvoIQbL7LPHn+Dt/ZoyHRTTjd+kytPI65ecFWgQ8j8s/dt8 klq2xBhjzRTo8eO2yaGnPJxhCx+CRQW0rIF1Lxwf9wBg/WOzKIPLmQWotxIrud3SJg7W 0ykw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753481250; x=1754086050; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5Y6htonD57XDXz16V1OAQINLlwnqllG7sgUgB7CHnHg=; b=eI/9x6uw3JpTanjy9ELfQkI/4fyuzVhpFEvaXKtRMKGoEy2i41CKX/PQUToGjDxNVh 59UP7ZIG3eXNwKTiM859vZYEYyJ51NONgfmMbBMUyQUs0NcHHMqn20s1mCGVRGP8N6Bn KOeARt2gy7fGwnpQ96rrFTT94aYWhASjp0jkn782xI663DC2j41k8JhceuoUX3dJCdvX t0j9RzJoLcG/WvTaVNFv97VC6VsZtiMUjmAjR09Kl3Za2HqXuGwcEPg8F1Rt7F3tkfo8 /uB2hfRTfsA9x/Vq6qkOohBUiI6u/tKb6soqL3vGLRwz3GUfwFEgRgnuHKNRf9gMp88S LQLw== X-Forwarded-Encrypted: i=1; AJvYcCUbyQxvaxYmjO20H/4t9/4zeMi9eztByQOr+nxoEH7W3RIt3WmRY8rX0rbfUA3pvXbGlxzL9kHbXFF8//E=@vger.kernel.org X-Gm-Message-State: AOJu0Yyq0ep6T7q1tikH86wejxtwQ/ZIc5LVl6TMgqN54W0tehoK3fzx +vVB4q9X1CDSG4dfyeKSKNe/Zkp75ZysAWzg6MtNYW4gsO0MS6zh6jfMm5X+dtNu0DUXZdcBRPa gIQye4Q== X-Google-Smtp-Source: AGHT+IFia7CnxcPZn6s1QJ5WnyDe0N4S00zu8qyLru6aJYUSbzYS9oOvJPDW2xLA4DhYxMt6hdAejB28KZ0= X-Received: from pjbhl4.prod.google.com ([2002:a17:90b:1344:b0:313:d6cf:4fa0]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:4a06:b0:311:f2f6:44ff with SMTP id 98e67ed59e1d1-31e77adafeemr5441517a91.17.1753481250103; Fri, 25 Jul 2025 15:07:30 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 25 Jul 2025 15:07:08 -0700 In-Reply-To: <20250725220713.264711-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250725220713.264711-1-seanjc@google.com> X-Mailer: git-send-email 2.50.1.552.g942d659e1b-goog Message-ID: <20250725220713.264711-9-seanjc@google.com> Subject: [GIT PULL] KVM: Device assignment accounting changes for 6.17 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson Content-Type: text/plain; charset="UTF-8" Two changes that depend on the IRQ and MMIO State Data pull requests, to kill off kvm_arch_{start,end}_assignment(). Note! To generate the pull request, I used the result of a local merge of kvm/next with kvm-x86-irqs-6.17 and kvm-x86-mmio-6.17. The resulting shortlog matches my expectations (and intentions), but the diff stats showed all of the changes from kvm-x86-irqs-6.17, and I couldn't for the life of me figure out how to coerce git into behaving as I want. AFAICT, it's just a cosmetic display error, there aren't any duplicate commits or anything. So, rather that copy+paste those weird diff stats, I locally processed _this_ merge too, and then manually generated the stats with `git diff --stat base..HEAD`. The following changes since : KVM: VMX: Apply MMIO Stale Data mitigation if KVM maps MMIO into the guest (2025-06-25 08:42:51 -0700) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-no_assignment-6.17 for you to fetch changes up to bbc13ae593e0ea47357ff6e4740c533c16c2ae1e: VFIO: KVM: x86: Drop kvm_arch_{start,end}_assignment() (2025-06-25 09:51:33 -0700) ---------------------------------------------------------------- KVM VFIO device assignment cleanups for 6.17 Kill off kvm_arch_{start,end}_assignment() and x86's associated tracking now that KVM no longer uses assigned_device_count as a bad heuristic for "VM has an irqbypass producer" or for "VM has access to host MMIO". ---------------------------------------------------------------- Sean Christopherson (3): Merge branch 'kvm-x86 mmio' Revert "kvm: detect assigned device via irqbypass manager" VFIO: KVM: x86: Drop kvm_arch_{start,end}_assignment() arch/x86/include/asm/kvm_host.h | 2 -- arch/x86/kvm/irq.c | 9 +-------- arch/x86/kvm/x86.c | 18 ------------------ include/linux/kvm_host.h | 18 ------------------ virt/kvm/vfio.c | 3 --- 5 files changed, 1 insertion(+), 49 deletions(-)