[kvm:queue 22/34] arch/x86/kvm/svm/svm.c:4952:26: error: 'struct kvm_arch' has no member named 'pre_fault_allowed'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   90433378a1bea709c362a855c99b4662c92e49be
commit: ca9ddf0b7d74a71b6d71ea5355825922b89f5fd7 [22/34] KVM: x86: disallow pre-fault for SNP VMs before initialization
config: i386-buildonly-randconfig-003-20240720 (https://download.01.org/0day-ci/archive/20240720/202407200823.WsY9eowy-lkp@xxxxxxxxx/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240720/202407200823.WsY9eowy-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/202407200823.WsY9eowy-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   arch/x86/kvm/svm/svm.c: In function 'svm_vm_init':
>> arch/x86/kvm/svm/svm.c:4952:26: error: 'struct kvm_arch' has no member named 'pre_fault_allowed'
    4952 |                 kvm->arch.pre_fault_allowed = !kvm->arch.has_private_mem;
         |                          ^
--
   arch/x86/kvm/x86.c: In function 'kvm_arch_init_vm':
>> arch/x86/kvm/x86.c:12650:18: error: 'struct kvm_arch' has no member named 'pre_fault_allowed'
   12650 |         kvm->arch.pre_fault_allowed =
         |                  ^
--
   arch/x86/kvm/mmu/mmu.c: In function 'kvm_arch_vcpu_pre_fault_memory':
>> arch/x86/kvm/mmu/mmu.c:4746:29: error: 'struct kvm_arch' has no member named 'pre_fault_allowed'
    4746 |         if (!vcpu->kvm->arch.pre_fault_allowed)
         |                             ^


vim +4952 arch/x86/kvm/svm/svm.c

  4940	
  4941	static int svm_vm_init(struct kvm *kvm)
  4942	{
  4943		int type = kvm->arch.vm_type;
  4944	
  4945		if (type != KVM_X86_DEFAULT_VM &&
  4946		    type != KVM_X86_SW_PROTECTED_VM) {
  4947			kvm->arch.has_protected_state =
  4948				(type == KVM_X86_SEV_ES_VM || type == KVM_X86_SNP_VM);
  4949			to_kvm_sev_info(kvm)->need_init = true;
  4950	
  4951			kvm->arch.has_private_mem = (type == KVM_X86_SNP_VM);
> 4952			kvm->arch.pre_fault_allowed = !kvm->arch.has_private_mem;
  4953		}
  4954	
  4955		if (!pause_filter_count || !pause_filter_thresh)
  4956			kvm->arch.pause_in_guest = true;
  4957	
  4958		if (enable_apicv) {
  4959			int ret = avic_vm_init(kvm);
  4960			if (ret)
  4961				return ret;
  4962		}
  4963	
  4964		return 0;
  4965	}
  4966	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux