From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 5423910F1 for ; Tue, 4 Jun 2024 00:00:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717459237; cv=none; b=YqertKIcoQYsoaP2AqoRvdFWR1wQ5SXW1un6kB9ZuMxXnEhZSBK9uQRVBNbSxPabk0l9mw92574n07Qm19GrWB4JDlJy8HL3qX94kxeocKtpI1gsnF5cgbl/E04hCJpJQjAvCZCbo7zP/BBW9g1mLgP+yBexZPPY/5EOb1jyfYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717459237; c=relaxed/simple; bh=qmzipbdBY6KqUjrHfBG3VzqriXpHdWHYlYyt1ENKvq0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=gzAOwmGqhQW5+gYSaQcov/wuCAwafFtjNz8XQZ0hV/+8/mgn8QMnDfo9sTO2otY18GKZDVIvwRJr8wMZOsMeOD+BKVcO+uWB5wVhkIDQkkg1nB0RvmATVX+gFh9EXWY3H+YduxZEvMWDl6KuwH1/AzZg9obJ5Nu2hFhlI/JLgEI= 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=L/UbOzGM; arc=none smtp.client-ip=209.85.216.74 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="L/UbOzGM" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2c1a590cc96so4072261a91.0 for ; Mon, 03 Jun 2024 17:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717459236; x=1718064036; 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=X9TixsbS4vucV54Qx239yWNe5AZLJZTOJio74oth8eo=; b=L/UbOzGM+TfjsttBDwqw33Jk2b3DMth2bsOfI0nx0kMDL9mricxF3qHUygEPoIVJsI kmKU5HFZfHxPgqZKx+Ookt7D93FVhWNcs4pldtc3MJVpo4ASkqhxFtWk+q0DNW1Q7HE5 +g79iYBtGE24rwLOqTvKBYIzgjp+edcJP9K6RzhJWskZOrlHcajJAt/TsNTLbM1mVrY+ RrXlLlo97JYib8+godLvSKWCK/hl5GE8/eD8Rpxgjv0i+cwjSboSQchZ0Dva88BJR3C+ XwwzcOq+XkBIX8gYMWWMRKt2CmPNQ9MP5k5oBklF0WBN/3laSaLvCOQRU6NolCxs7zWc IrgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717459236; x=1718064036; 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=X9TixsbS4vucV54Qx239yWNe5AZLJZTOJio74oth8eo=; b=HfBP9HvecDxXaTxd8lLFRvnJUYIKdickhV5K6iumOLqAkp8EhOcstS7IsSd08upLnE Wfz06d843PpDPFQ2RbuTXQ20leaaAzN36Sjo8QqUb/XyCQpfNGP7gJY5UgnT328Iou6j OBHQdlXsSo7K72IBj5MwFkh7TkEnIhxGlbGq/PYiOjw5afoxdkmOaMxVwa6HVSbEjAXs HRJN7VTMJ7w4bv/LwtPJ4nO/jr96lDy/HHOY/ZLE3dtIIO+KOheuiW9v6jrgdFYtRB9k qevpizx/7TzxcZrf/2SyBsfQUhEIXkjbol3pR7ZxdL0F0rw+KuQh2wCCWOVlMkhj6fCu D0sQ== X-Forwarded-Encrypted: i=1; AJvYcCXOgzmOksr8Ve07iEwd+h593o3I5FJWRxH6P8w7epm2v3alhde01pQOL/EiBvS1eQ9iELzSHzZqndxajJ4KAP3MgUaR+dGcy/HE X-Gm-Message-State: AOJu0YzZf/u0VjHldyic6+/ubFaTkO+SLq5wryDNDFJ+el/CciZo4sPZ SojYbFY9D9Y24lp2dtlFlt6gZvLvNKypWALiMFqf818wo+qEnA3TTykXaGIQAQwOPwqIHStCz+G DPg== X-Google-Smtp-Source: AGHT+IEZPsEeD1Zd/VZMKCyFxGi7l593WU5W4++SYV2nnpe1UGIt5x3H32mkoIcyVAOGihn5nlLRW2Z7atY= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:ab0a:b0:2c2:4117:2409 with SMTP id 98e67ed59e1d1-2c241172c69mr8738a91.8.1717459234737; Mon, 03 Jun 2024 17:00:34 -0700 (PDT) Date: Mon, 3 Jun 2024 17:00:33 -0700 In-Reply-To: <20240520143220.340737-2-julian.stecklina@cyberus-technology.de> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240520143220.340737-1-julian.stecklina@cyberus-technology.de> <20240520143220.340737-2-julian.stecklina@cyberus-technology.de> Message-ID: Subject: Re: [PATCH 2/2] KVM: fix spelling of KVM_RUN_X86_BUS_LOCK in docs From: Sean Christopherson To: Julian Stecklina Cc: Paolo Bonzini , Jonathan Corbet , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Mon, May 20, 2024, Julian Stecklina wrote: > The documentation refers to KVM_RUN_BUS_LOCK, but the constant is > actually called KVM_RUN_X86_BUS_LOCK. > > Signed-off-by: Julian Stecklina > --- > Documentation/virt/kvm/api.rst | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst > index 2d45b21b0288..5050535140ab 100644 > --- a/Documentation/virt/kvm/api.rst > +++ b/Documentation/virt/kvm/api.rst > @@ -6418,7 +6418,7 @@ affect the device's behavior. Current defined flags:: > /* x86, set if the VCPU is in system management mode */ > #define KVM_RUN_X86_SMM (1 << 0) > /* x86, set if bus lock detected in VM */ > - #define KVM_RUN_BUS_LOCK (1 << 1) > + #define KVM_RUN_X86_BUS_LOCK (1 << 1) > /* arm64, set for KVM_EXIT_DEBUG */ > #define KVM_DEBUG_ARCH_HSR_HIGH_VALID (1 << 0) > > @@ -7776,10 +7776,10 @@ its own throttling or other policy based mitigations. > This capability is aimed to address the thread that VM can exploit bus locks to > degree the performance of the whole system. Once the userspace enable this > capability and select the KVM_BUS_LOCK_DETECTION_EXIT mode, KVM will set the > -KVM_RUN_BUS_LOCK flag in vcpu-run->flags field and exit to userspace. Concerning > +KVM_RUN_X86_BUS_LOCK flag in vcpu-run->flags field and exit to userspace. Concerning > the bus lock vm exit can be preempted by a higher priority VM exit, the exit > notifications to userspace can be KVM_EXIT_BUS_LOCK or other reasons. > -KVM_RUN_BUS_LOCK flag is used to distinguish between them. > +KVM_RUN_X86_BUS_LOCK flag is used to distinguish between them. There's a patch[*] that does this clean-up and more, which I'm going to grab for 6.11. I am planning on grabbing patch 1 though. Thanks! [*] https://lore.kernel.org/all/20231116133628.5976-1-clopez@suse.de