From: kernel test robot <lkp@intel.com>
To: Brendan Jackman <jackmanb@google.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
kvm@vger.kernel.org, Brendan Jackman <jackmanb@google.com>
Subject: Re: [PATCH] KVM: x86: Unify L1TF flushing under per-CPU variable
Date: Tue, 14 Oct 2025 15:24:37 +0800 [thread overview]
Message-ID: <202510141438.OMSBOz6R-lkp@intel.com> (raw)
In-Reply-To: <20251013-b4-l1tf-percpu-v1-1-d65c5366ea1a@google.com>
Hi Brendan,
kernel test robot noticed the following build errors:
[auto build test ERROR on 6b36119b94d0b2bb8cea9d512017efafd461d6ac]
url: https://github.com/intel-lab-lkp/linux/commits/Brendan-Jackman/KVM-x86-Unify-L1TF-flushing-under-per-CPU-variable/20251013-235118
base: 6b36119b94d0b2bb8cea9d512017efafd461d6ac
patch link: https://lore.kernel.org/r/20251013-b4-l1tf-percpu-v1-1-d65c5366ea1a%40google.com
patch subject: [PATCH] KVM: x86: Unify L1TF flushing under per-CPU variable
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20251014/202510141438.OMSBOz6R-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/20251014/202510141438.OMSBOz6R-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/202510141438.OMSBOz6R-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/coco/tdx/tdx.c:471:12: error: conflicting types for 'read_msr'; have 'int(struct pt_regs *, struct ve_info *)'
471 | static int read_msr(struct pt_regs *regs, struct ve_info *ve)
| ^~~~~~~~
In file included from arch/x86/include/asm/idtentry.h:15,
from arch/x86/include/asm/traps.h:9,
from arch/x86/coco/tdx/tdx.c:20:
arch/x86/include/asm/kvm_host.h:2320:29: note: previous definition of 'read_msr' with type 'long unsigned int(long unsigned int)'
2320 | static inline unsigned long read_msr(unsigned long msr)
| ^~~~~~~~
vim +471 arch/x86/coco/tdx/tdx.c
9f98a4f4e7216d Vishal Annapurve 2025-02-28 470
cdd85786f4b3b9 Kirill A. Shutemov 2022-06-14 @471 static int read_msr(struct pt_regs *regs, struct ve_info *ve)
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 472 {
8a8544bde858e5 Kai Huang 2023-08-15 473 struct tdx_module_args args = {
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 474 .r10 = TDX_HYPERCALL_STANDARD,
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 475 .r11 = hcall_func(EXIT_REASON_MSR_READ),
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 476 .r12 = regs->cx,
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 477 };
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 478
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 479 /*
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 480 * Emulate the MSR read via hypercall. More info about ABI
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 481 * can be found in TDX Guest-Host-Communication Interface
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 482 * (GHCI), section titled "TDG.VP.VMCALL<Instruction.RDMSR>".
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 483 */
c641cfb5c157b6 Kai Huang 2023-08-15 484 if (__tdx_hypercall(&args))
cdd85786f4b3b9 Kirill A. Shutemov 2022-06-14 485 return -EIO;
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 486
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 487 regs->ax = lower_32_bits(args.r11);
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 488 regs->dx = upper_32_bits(args.r11);
cdd85786f4b3b9 Kirill A. Shutemov 2022-06-14 489 return ve_instr_len(ve);
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 490 }
ae87f609cd5282 Kirill A. Shutemov 2022-04-06 491
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-10-14 7:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 15:20 [PATCH] KVM: x86: Unify L1TF flushing under per-CPU variable Brendan Jackman
2025-10-13 16:31 ` Sean Christopherson
2025-10-13 16:52 ` Brendan Jackman
2025-10-14 6:13 ` [syzbot ci] " syzbot ci
2025-10-14 8:57 ` Brendan Jackman
2025-10-14 11:46 ` Brendan Jackman
2025-10-14 7:24 ` kernel test robot [this message]
2025-10-14 9:02 ` [PATCH] " Brendan Jackman
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=202510141438.OMSBOz6R-lkp@intel.com \
--to=lkp@intel.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jackmanb@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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