Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp515258lqb; Thu, 29 Feb 2024 07:27:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVbY9ax97I59ZBbDupvD+PGg0odZbUSX4jM8duLiTkzWVgxv9bX1KR8vzC+If1P/EiWKT/d0ET/rJHMIivXFKSJAmU8ze5o/ee5R10lCA== X-Google-Smtp-Source: AGHT+IGYlZyfB9ml3QtKj4vqZ96rnxPgvYW+hVrMMhscFvyNSAdcRD+YqTUwpRqlOMlksD6eGD2F X-Received: by 2002:a17:902:74c1:b0:1db:b8dc:a016 with SMTP id f1-20020a17090274c100b001dbb8dca016mr2464064plt.7.1709220422811; Thu, 29 Feb 2024 07:27:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709220422; cv=pass; d=google.com; s=arc-20160816; b=WaxqWI7AZlrjco1gxflZmCIH5YRNVXkHHGZ8yFbzStW/NA6cfZYFeWt0W0KDa90MQT DzLUJQDCBU0o4wQZ9PSvyJEdLMpDnmMqST+F1nEQA/iv1IC26A2bg86m97dVmcfZNqHl J0Z490mEc5ZXgnuM/5BPWmyihsAGYkBndedn9PH9r/1YQBywK6+GKzEqytgBR4Ki5luc o72RlRaC31bARc1bW6kBwbRUHIFY+jL9N3bNkyHDRpDwAC61D7AL0CUsYZEYqrqyfv4f oQAmikwAWHXIEz6h9EezjlIkLDsY+AEHtyhja2dnUKGXy5+5VAHwfuJVHJkHRBxzHami l5Bg== 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=J/OUKQeIqZ+tPyZREllTuis7KcKSDMU8Twx5UZE09wY=; fh=p87hhYnM18bQUnEB6so5fU4Wn9IjioZt28q7l9N6snU=; b=I8ym1Hi/i7RgmGdF77ncrAMeiQKjLuI7Hy2pZXQdhuxmAx6G5jjXYZIf+Umu4PFO/E G69uU+Uu/GO3E6HanEpG5tNPASQjf/DsmYH3N0IhmO0V6U8hRu/0JT7UEwZZLD+Wq3gX Zo5XCmOSbKNIMLU4RuUZsv5uXM+puBysjd217j8yPrb4EPSkYEOnrRgfKz8gEiei8Oxf qYjzW26diHX7XLQqBAkulK18OXRLlbQAE1Oi6Grk5EmXPs+CQ7WEts6RTp7LqnmjdYen yxj6X1CF3qxMOL2BhoTYyYa9kFMXzkpKBfA8+3prUwJmrJVfG/GupKMhuxB6ktC8Pzw+ 7Xyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=VJpUdHmF; 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-86922-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x12-20020a170902ea8c00b001dc03d4e2a9si1472373plb.173.2024.02.29.07.27.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 07:27:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86922-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=VJpUdHmF; 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-86922-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86922-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CB122283ACC for ; Thu, 29 Feb 2024 15:26:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A8011420D0; Thu, 29 Feb 2024 15:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="VJpUdHmF" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.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 8BCC913A877 for ; Thu, 29 Feb 2024 15:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709220357; cv=none; b=UfU7QisIn9M0NofDbSik5J43xKb51iA+vA9fVEej3RMUjWZhGOVE2JVLFHQR7SEF7fO03fpejwJjZVN/SLMBvLnuSDUffsU3eZYGJeXws3M2zb8MAZtYFuZFwvXKV7TOPdqaLieR0I7SV6moVe/bz1soMcmkwrt2PzitSXc5Zs4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709220357; c=relaxed/simple; bh=7HaQhAX6xe9m6UV2kdfbt42WvZeWdh2pF9QplgSu0I0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RkyiLnYV1FFkLlR9j6j7jYD7Ik5XuCDxuVVC5+PjpdcZ1gu0W9OYM2OW2sNVWt6hni0ZOU1lIoc5Zr2UaSrXS9eJ1h5MkXXMlt0jG7mwsgThS8/Xn070JoQz0XNoq+7GGBvUVqZDcTX+PmYYvMxbqdzPvvM/OPH3zPXyhCmeurE= 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=VJpUdHmF; arc=none smtp.client-ip=209.85.215.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-pg1-f202.google.com with SMTP id 41be03b00d2f7-5dcab65d604so771956a12.3 for ; Thu, 29 Feb 2024 07:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709220356; x=1709825156; 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=J/OUKQeIqZ+tPyZREllTuis7KcKSDMU8Twx5UZE09wY=; b=VJpUdHmFZI6P1bVHp2RR7lnAuXki0/vQUofLBZoQOBKfMt9/+ayg0UD9mCTgnb0VmN QRjoLV2JXVTF3lF1YC8ICjEo5JkWGX5r8gXuHjXSCrh6iVW2n91uv/Qb971fHQeqWepM cEGQKERG8XRTTC3nzBDxHzr6tzRyf83hz1i+VFXZWJ0EzngOuZO24kYyNJK9gJhydING VBIA7rGDJWMGqzABGROo0f+sqht4z9jGHmuqY2TxQBIOAUI539Up5M9ctMRwFacXubf4 /GGOkox5snGrt3Zygojl8Fac7iuqQJfPCK1JE4MLLtlhQkEbi1fgtGxlCqu3WdDkYQLO BPdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709220356; x=1709825156; 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=J/OUKQeIqZ+tPyZREllTuis7KcKSDMU8Twx5UZE09wY=; b=dtw36jKWtL0rqzeqHQWZr/Itn5x/rFejSCaBJ8VvbJhhHwpNPRYba4OVWA4IQi6k3S x8FjMzf/RC8TjpmRmXJhmEqmtAxlC+QdkGMH7i/UictpcR+cU9ycbf8Ml57ieUiW6knL Z9k/zD0gXzGPM7lSeIFei78Pobe2UYM6GSxD2bdnShN0GtZSUnzv8/EZ4BscwA2yym7c vOVE/l+cSDluUQquKlscvaBgS1XOxsrbU57dxh6ojlLGgjh4U1VTRjgZzwcQR5JUAT0V eOxiU0NXa3HXCcibR+ZevbxhKvxGpPous5WugYZAznq4SItkcSxHFgMiV+2Y7gtfOR9O f4Xw== X-Forwarded-Encrypted: i=1; AJvYcCWzS2eLZ3H553VaH5/a1ShedL0F5a3Sp3s1TDroRDXh0uUTGbRa3IBoNMCIXggtlxK91qleCxvmWQRobSAzxXRMTKpEjjpmu5Dk62c3 X-Gm-Message-State: AOJu0YwFuLnhDvmLngfhT7Mea+DBXT78EoLZjARg0F55QmzYS635xcJa RDMT3aLb70id1pVZcpXHirlB/Ved3czRass997pa/HvmhclvsqXSWsy+69e+cbpSd4+jOF9hsYr kkg== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6a02:a0d:b0:5cd:9ea4:c99 with SMTP id cm13-20020a056a020a0d00b005cd9ea40c99mr6381pgb.6.1709220355807; Thu, 29 Feb 2024 07:25:55 -0800 (PST) Date: Thu, 29 Feb 2024 07:25:54 -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: <20240228024147.41573-1-seanjc@google.com> <20240228024147.41573-3-seanjc@google.com> Message-ID: Subject: Re: [PATCH 02/16] KVM: x86: Remove separate "bit" defines for page fault error code masks From: Sean Christopherson To: Dongli Zhang Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yan Zhao , Isaku Yamahata , Michael Roth , Yu Zhang , Chao Peng , Fuad Tabba , David Matlack Content-Type: text/plain; charset="us-ascii" On Thu, Feb 29, 2024, Dongli Zhang wrote: > I remember I read somewhere suggesting not to change the headers in selftest. The "suggestion" is to not update the headers that perf tooling copies verbatim from the kernel, e.g. tools/include/uapi/linux/kvm.h. The duplicates in tools/ aren't used by KVM selftests, it's purely perf that needs identical copies from the kernel tree, so I strongly prefer to leave it to the perf folks to deal with synchronizing the headers as needed. > Just double-check if there is requirement to edit > tools/testing/selftests/kvm/include/x86_64/processor.h. This header is a KVM selftests specific header that is independent from the kernel headers. It does have _some_ copy+paste, mostly for architecturally defined bits and bobs, but it's not a straight copy of any kernel header. That said, yes, I think we should also clean up x86_64/processor.h. That can be done in a one-off standalone patch though.