linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xiaoyao Li <xiaoyao.li@intel.com>
To: Sean Christopherson <seanjc@google.com>,
	kernel test robot <lkp@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	oe-kbuild-all@lists.linux.dev,
	Rick Edgecombe <rick.p.edgecombe@intel.com>,
	kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	farrah.chen@intel.com
Subject: Re: [PATCH v2] KVM: x86: Don't read guest CR3 when doing async pf while the MMU is direct
Date: Mon, 15 Dec 2025 10:30:06 +0800	[thread overview]
Message-ID: <2df1a0c0-31a6-45c9-a92e-abdbfddbd9b6@intel.com> (raw)
In-Reply-To: <aTy7AG2y1OwIXfqs@google.com>

On 12/13/2025 9:01 AM, Sean Christopherson wrote:
> On Sat, Dec 13, 2025, kernel test robot wrote:
>> Hi Xiaoyao,
>>
>> kernel test robot noticed the following build warnings:
>>
>> [auto build test WARNING on 7d0a66e4bb9081d75c82ec4957c50034cb0ea449]
>>
>> url:    https://github.com/intel-lab-lkp/linux/commits/Xiaoyao-Li/KVM-x86-Don-t-read-guest-CR3-when-doing-async-pf-while-the-MMU-is-direct/20251212-220612
>> base:   7d0a66e4bb9081d75c82ec4957c50034cb0ea449
>> patch link:    https://lore.kernel.org/r/20251212135051.2155280-1-xiaoyao.li%40intel.com
>> patch subject: [PATCH v2] KVM: x86: Don't read guest CR3 when doing async pf while the MMU is direct
>> config: i386-buildonly-randconfig-002-20251213 (https://download.01.org/0day-ci/archive/20251213/202512130717.aHH8rXSC-lkp@intel.com/config)
>> compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512130717.aHH8rXSC-lkp@intel.com/reproduce)
>>
>> If you fix the issue in a separate patch/commit (i.e. not just a new version of
>> the same patch/commit), kindly add following tags
>> | Reported-by: kernel test robot <lkp@intel.com>
>> | Closes: https://lore.kernel.org/oe-kbuild-all/202512130717.aHH8rXSC-lkp@intel.com/
>>
>> All warnings (new ones prefixed by >>):
>>
>>     In file included from include/linux/kvm_host.h:43,
>>                      from arch/x86/kvm/irq.h:15,
>>                      from arch/x86/kvm/mmu/mmu.c:19:
>>     arch/x86/kvm/mmu/mmu.c: In function 'kvm_arch_setup_async_pf':
>>>> include/linux/kvm_types.h:54:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
>>        54 | #define INVALID_GPA     (~(gpa_t)0)
>>           |                         ^
>>     arch/x86/kvm/mmu/mmu.c:4525:28: note: in expansion of macro 'INVALID_GPA'
>>      4525 |                 arch.cr3 = INVALID_GPA;
>>           |                            ^~~~~~~~~~~
> 
> Well that's just annoying.  Can we kill 32-bit yet?  Anyways, just ignore this
> (unless it causes my KVM_WERROR=1 builds to fail, in which case I'll just add an
> explicit cast, but I think we can just ignore it).

If your KVM_WERROR=1 builds contain 32-bit config, I think it will fail. 
I think we do need to add the explicit cast.

You will handle it when applying, right? Thus no need for a v3.

  reply	other threads:[~2025-12-15  2:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-12 13:50 [PATCH v2] KVM: x86: Don't read guest CR3 when doing async pf while the MMU is direct Xiaoyao Li
2025-12-12 23:38 ` kernel test robot
2025-12-13  1:01   ` Sean Christopherson
2025-12-15  2:30     ` Xiaoyao Li [this message]
2025-12-15 20:51       ` Sean Christopherson
2025-12-13  1:38 ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2df1a0c0-31a6-45c9-a92e-abdbfddbd9b6@intel.com \
    --to=xiaoyao.li@intel.com \
    --cc=farrah.chen@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pbonzini@redhat.com \
    --cc=rick.p.edgecombe@intel.com \
    --cc=seanjc@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).