All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [PATCH v7 16/18] KVM: x86: Add guest support for detecting and enabling SEV Live Migration feature.
Date: Fri, 01 May 2020 21:39:34 +0800	[thread overview]
Message-ID: <202005012154.HBENGSFW%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5314 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <42947fc3dc7a01c73677560c84dfd87498d381e0.1588234824.git.ashish.kalra@amd.com>
References: <42947fc3dc7a01c73677560c84dfd87498d381e0.1588234824.git.ashish.kalra@amd.com>
TO: Ashish Kalra <Ashish.Kalra@amd.com>
TO: pbonzini(a)redhat.com
CC: tglx(a)linutronix.de
CC: mingo(a)redhat.com
CC: hpa(a)zytor.com
CC: joro(a)8bytes.org
CC: bp(a)suse.de
CC: thomas.lendacky(a)amd.com
CC: x86(a)kernel.org
CC: kvm(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org

Hi Ashish,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on v5.7-rc3]
[cannot apply to kvm/linux-next tip/x86/mm tip/x86/core next-20200501]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Ashish-Kalra/Add-AMD-SEV-guest-live-migration-support/20200430-202702
base:    6a8b55ed4056ea5559ebe4f6a4b247f627870d4c
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-191-gc51a0382-dirty
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
:::::: branch date: 25 hours ago
:::::: commit date: 25 hours ago

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> arch/x86/kernel/kvm.c:410:56: sparse: sparse: invalid initializer
   arch/x86/kernel/kvm.c:795:6: sparse: sparse: symbol 'kvm_sev_migration_hcall' was not declared. Should it be static?

# https://github.com/0day-ci/linux/commit/ec31b001157e1122024857a2b8ffcb9c730e165d
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout ec31b001157e1122024857a2b8ffcb9c730e165d
vim +410 arch/x86/kernel/kvm.c

4716276184ec67 Brijesh Singh 2017-10-20  406  
ec31b001157e11 Ashish Kalra  2020-04-30  407  #ifdef CONFIG_EFI
ec31b001157e11 Ashish Kalra  2020-04-30  408  static bool setup_kvm_sev_migration(void)
ec31b001157e11 Ashish Kalra  2020-04-30  409  {
ec31b001157e11 Ashish Kalra  2020-04-30 @410  	efi_char16_t efi_Sev_Live_Mig_support_name[] = L"SevLiveMigrationEnabled";
ec31b001157e11 Ashish Kalra  2020-04-30  411  	efi_guid_t efi_variable_guid = MEM_ENCRYPT_GUID;
ec31b001157e11 Ashish Kalra  2020-04-30  412  	efi_status_t status;
ec31b001157e11 Ashish Kalra  2020-04-30  413  	unsigned long size;
ec31b001157e11 Ashish Kalra  2020-04-30  414  	bool enabled;
ec31b001157e11 Ashish Kalra  2020-04-30  415  
ec31b001157e11 Ashish Kalra  2020-04-30  416  	if (!sev_live_migration_enabled())
ec31b001157e11 Ashish Kalra  2020-04-30  417  		return false;
ec31b001157e11 Ashish Kalra  2020-04-30  418  
ec31b001157e11 Ashish Kalra  2020-04-30  419  	size = sizeof(enabled);
ec31b001157e11 Ashish Kalra  2020-04-30  420  
ec31b001157e11 Ashish Kalra  2020-04-30  421  	if (!efi_enabled(EFI_RUNTIME_SERVICES)) {
ec31b001157e11 Ashish Kalra  2020-04-30  422  		pr_info("setup_kvm_sev_migration: no efi\n");
ec31b001157e11 Ashish Kalra  2020-04-30  423  		return false;
ec31b001157e11 Ashish Kalra  2020-04-30  424  	}
ec31b001157e11 Ashish Kalra  2020-04-30  425  
ec31b001157e11 Ashish Kalra  2020-04-30  426  	/* Get variable contents into buffer */
ec31b001157e11 Ashish Kalra  2020-04-30  427  	status = efi.get_variable(efi_Sev_Live_Mig_support_name,
ec31b001157e11 Ashish Kalra  2020-04-30  428  				  &efi_variable_guid, NULL, &size, &enabled);
ec31b001157e11 Ashish Kalra  2020-04-30  429  
ec31b001157e11 Ashish Kalra  2020-04-30  430  	if (status == EFI_NOT_FOUND) {
ec31b001157e11 Ashish Kalra  2020-04-30  431  		pr_info("setup_kvm_sev_migration: variable not found\n");
ec31b001157e11 Ashish Kalra  2020-04-30  432  		return false;
ec31b001157e11 Ashish Kalra  2020-04-30  433  	}
ec31b001157e11 Ashish Kalra  2020-04-30  434  
ec31b001157e11 Ashish Kalra  2020-04-30  435  	if (status != EFI_SUCCESS) {
ec31b001157e11 Ashish Kalra  2020-04-30  436  		pr_info("setup_kvm_sev_migration: get_variable fail\n");
ec31b001157e11 Ashish Kalra  2020-04-30  437  		return false;
ec31b001157e11 Ashish Kalra  2020-04-30  438  	}
ec31b001157e11 Ashish Kalra  2020-04-30  439  
ec31b001157e11 Ashish Kalra  2020-04-30  440  	if (enabled == 0) {
ec31b001157e11 Ashish Kalra  2020-04-30  441  		pr_info("setup_kvm_sev_migration: live migration disabled in OVMF\n");
ec31b001157e11 Ashish Kalra  2020-04-30  442  		return false;
ec31b001157e11 Ashish Kalra  2020-04-30  443  	}
ec31b001157e11 Ashish Kalra  2020-04-30  444  
ec31b001157e11 Ashish Kalra  2020-04-30  445  	pr_info("setup_kvm_sev_migration: live migration enabled in OVMF\n");
ec31b001157e11 Ashish Kalra  2020-04-30  446  	wrmsrl(MSR_KVM_SEV_LIVE_MIG_EN, KVM_SEV_LIVE_MIGRATION_ENABLED);
ec31b001157e11 Ashish Kalra  2020-04-30  447  
ec31b001157e11 Ashish Kalra  2020-04-30  448  	return true;
ec31b001157e11 Ashish Kalra  2020-04-30  449  }
ec31b001157e11 Ashish Kalra  2020-04-30  450  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

             reply	other threads:[~2020-05-01 13:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-01 13:39 kbuild test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-30  8:39 [PATCH v7 00/18] Add AMD SEV guest live migration support Ashish Kalra
2020-04-30  8:46 ` [PATCH v7 16/18] KVM: x86: Add guest support for detecting and enabling SEV Live Migration feature Ashish Kalra
2020-04-30 16:42   ` kbuild test robot
2020-04-30 16:42     ` kbuild 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=202005012154.HBENGSFW%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.