Re: [PATCH] KVM, SEV: fix merge conflict
From: kernel test robot
Date: Wed May 20 2026 - 00:16:13 EST
Hi Arnd,
kernel test robot noticed the following build errors:
[auto build test ERROR on kvm/queue]
[also build test ERROR on kvm/next linus/master v7.1-rc4 next-20260519]
[cannot apply to kvm/linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Arnd-Bergmann/KVM-SEV-fix-merge-conflict/20260520-043413
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
patch link: https://lore.kernel.org/r/20260519202851.1339906-1-arnd%40kernel.org
patch subject: [PATCH] KVM, SEV: fix merge conflict
config: x86_64-rhel-9.4-kselftests (https://download.01.org/0day-ci/archive/20260520/202605201202.pnbQfWkV-lkp@xxxxxxxxx/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/20260520/202605201202.pnbQfWkV-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605201202.pnbQfWkV-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
arch/x86/kvm/svm/sev.c: In function 'kvm_lockdep_assert_sev_lock_held':
>> arch/x86/kvm/svm/sev.c:117:32: error: 'struct kvm' has no member named 'rc'
117 | if (!refcount_read(&kvm->rc.users_count))
| ^~
vim +117 arch/x86/kvm/svm/sev.c
109
110 static __always_inline void kvm_lockdep_assert_sev_lock_held(struct kvm *kvm)
111 {
112 #ifdef CONFIG_PROVE_LOCKING
113 /*
114 * Querying SEV+ support is safe if there are no other references, i.e.
115 * if concurrent initialization of SEV+ is impossible.
116 */
> 117 if (!refcount_read(&kvm->rc.users_count))
118 return;
119
120 /*
121 * Querying SEV+ support from vCPU context is always safe, as vCPUs can
122 * only be created after SEV+ is initialized (and KVM disallows all SEV
123 * sub-ioctls while vCPU creation is in-progress).
124 */
125 if (kvm_get_running_vcpu())
126 return;
127
128 lockdep_assert_held(&kvm->lock);
129 #endif
130 }
131
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki