All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Woodhouse <dwmw2@infradead.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"Raslan, KarimAllah" <karahmed@amazon.com>,
	Joao Martins <joao.m.martins@oracle.com>,
	Ankur Arora <ankur.a.arora@oracle.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	"jmattson@google.com" <jmattson@google.com>,
	"wanpengli@tencent.com" <wanpengli@tencent.com>,
	"seanjc@google.com" <seanjc@google.com>,
	"vkuznets@redhat.com" <vkuznets@redhat.com>,
	"mtosatti@redhat.com" <mtosatti@redhat.com>
Subject: Re: [PATCH 5/6] KVM: x86/xen: Maintain valid mapping of Xen shared_inf=
Date: Mon, 1 Nov 2021 22:18:38 +0800	[thread overview]
Message-ID: <202111012218.4dsPCxWe-lkp@intel.com> (raw)
In-Reply-To: <8ba4d8cf27f03eb13841ebb9039fc4ff15fa1b50.camel@infradead.org>

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

Hi David,

I love your patch! Yet something to improve:

[auto build test ERROR on kvm/queue]
[also build test ERROR on mst-vhost/linux-next v5.15 next-20211101]
[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]

url:    https://github.com/0day-ci/linux/commits/David-Woodhouse/KVM-x86-xen-Maintain-valid-mapping-of-Xen-shared_inf/20211101-161824
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
config: x86_64-randconfig-a003-20211101 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82ed106567063ea269c6d5669278b733e173a42f)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/5faac25097318b72a65ed637b6a46ec92353cadb
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review David-Woodhouse/KVM-x86-xen-Maintain-valid-mapping-of-Xen-shared_inf/20211101-161824
        git checkout 5faac25097318b72a65ed637b6a46ec92353cadb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> arch/x86/kvm/xen.c:36:17: error: incompatible pointer types passing 'struct kvm *' to parameter of type 'struct kvm_vcpu *' [-Werror,-Wincompatible-pointer-types]
                   kvm_unmap_gfn(kvm, &kvm->arch.xen.shinfo_map,
                                 ^~~
   include/linux/kvm_host.h:923:36: note: passing argument to parameter 'vcpu' here
   int kvm_unmap_gfn(struct kvm_vcpu *vcpu, struct kvm_host_map *map,
                                      ^
   arch/x86/kvm/xen.c:64:20: error: incompatible pointer types passing 'struct kvm *' to parameter of type 'struct kvm_vcpu *' [-Werror,-Wincompatible-pointer-types]
           ret = kvm_map_gfn(kvm, gfn, &kvm->arch.xen.shinfo_map,
                             ^~~
   include/linux/kvm_host.h:919:34: note: passing argument to parameter 'vcpu' here
   int kvm_map_gfn(struct kvm_vcpu *vcpu, gfn_t gfn, struct kvm_host_map *map,
                                    ^
   2 errors generated.


vim +36 arch/x86/kvm/xen.c

    23	
    24	static void kvm_xen_shared_info_unmap(struct kvm *kvm)
    25	{
    26		bool was_valid = false;
    27	
    28		write_lock(&kvm->arch.xen.shinfo_lock);
    29		if (kvm->arch.xen.shared_info)
    30			was_valid = true;
    31		kvm->arch.xen.shared_info = NULL;
    32		kvm->arch.xen.shinfo_gfn = GPA_INVALID;
    33		write_unlock(&kvm->arch.xen.shinfo_lock);
    34	
    35		if (kvm_vcpu_mapped(&kvm->arch.xen.shinfo_map)) {
  > 36			kvm_unmap_gfn(kvm, &kvm->arch.xen.shinfo_map,
    37				      &kvm->arch.xen.shinfo_cache, was_valid, false);
    38	
    39			/* If the MMU notifier invalidated it, the gfn_to_pfn_cache
    40			 * may be invalid. Force it to notice */
    41			if (!was_valid)
    42				kvm->arch.xen.shinfo_cache.generation = -1;
    43		}
    44	}
    45	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31258 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 5/6] KVM: x86/xen: Maintain valid mapping of Xen shared_inf=
Date: Mon, 01 Nov 2021 22:18:38 +0800	[thread overview]
Message-ID: <202111012218.4dsPCxWe-lkp@intel.com> (raw)
In-Reply-To: <8ba4d8cf27f03eb13841ebb9039fc4ff15fa1b50.camel@infradead.org>

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

Hi David,

I love your patch! Yet something to improve:

[auto build test ERROR on kvm/queue]
[also build test ERROR on mst-vhost/linux-next v5.15 next-20211101]
[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]

url:    https://github.com/0day-ci/linux/commits/David-Woodhouse/KVM-x86-xen-Maintain-valid-mapping-of-Xen-shared_inf/20211101-161824
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
config: x86_64-randconfig-a003-20211101 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82ed106567063ea269c6d5669278b733e173a42f)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/5faac25097318b72a65ed637b6a46ec92353cadb
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review David-Woodhouse/KVM-x86-xen-Maintain-valid-mapping-of-Xen-shared_inf/20211101-161824
        git checkout 5faac25097318b72a65ed637b6a46ec92353cadb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> arch/x86/kvm/xen.c:36:17: error: incompatible pointer types passing 'struct kvm *' to parameter of type 'struct kvm_vcpu *' [-Werror,-Wincompatible-pointer-types]
                   kvm_unmap_gfn(kvm, &kvm->arch.xen.shinfo_map,
                                 ^~~
   include/linux/kvm_host.h:923:36: note: passing argument to parameter 'vcpu' here
   int kvm_unmap_gfn(struct kvm_vcpu *vcpu, struct kvm_host_map *map,
                                      ^
   arch/x86/kvm/xen.c:64:20: error: incompatible pointer types passing 'struct kvm *' to parameter of type 'struct kvm_vcpu *' [-Werror,-Wincompatible-pointer-types]
           ret = kvm_map_gfn(kvm, gfn, &kvm->arch.xen.shinfo_map,
                             ^~~
   include/linux/kvm_host.h:919:34: note: passing argument to parameter 'vcpu' here
   int kvm_map_gfn(struct kvm_vcpu *vcpu, gfn_t gfn, struct kvm_host_map *map,
                                    ^
   2 errors generated.


vim +36 arch/x86/kvm/xen.c

    23	
    24	static void kvm_xen_shared_info_unmap(struct kvm *kvm)
    25	{
    26		bool was_valid = false;
    27	
    28		write_lock(&kvm->arch.xen.shinfo_lock);
    29		if (kvm->arch.xen.shared_info)
    30			was_valid = true;
    31		kvm->arch.xen.shared_info = NULL;
    32		kvm->arch.xen.shinfo_gfn = GPA_INVALID;
    33		write_unlock(&kvm->arch.xen.shinfo_lock);
    34	
    35		if (kvm_vcpu_mapped(&kvm->arch.xen.shinfo_map)) {
  > 36			kvm_unmap_gfn(kvm, &kvm->arch.xen.shinfo_map,
    37				      &kvm->arch.xen.shinfo_cache, was_valid, false);
    38	
    39			/* If the MMU notifier invalidated it, the gfn_to_pfn_cache
    40			 * may be invalid. Force it to notice */
    41			if (!was_valid)
    42				kvm->arch.xen.shinfo_cache.generation = -1;
    43		}
    44	}
    45	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31258 bytes --]

  reply	other threads:[~2021-11-01 14:39 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-23 19:47 [PATCH] KVM: x86/xen: Fix runstate updates to be atomic when preempting vCPU Woodhouse, David
2021-10-24 11:15 ` David Woodhouse
2021-10-25 10:23 ` Paolo Bonzini
2021-10-25 10:39   ` [EXTERNAL] " David Woodhouse
2021-10-25 12:12     ` Paolo Bonzini
2021-10-25 12:19     ` David Woodhouse
2021-10-25 12:22       ` Paolo Bonzini
2021-10-25 13:13         ` David Woodhouse
2021-10-29 10:48           ` David Woodhouse
2021-10-30  7:58         ` David Woodhouse
2021-10-31  6:52           ` Paolo Bonzini
2021-10-31  7:51             ` David Woodhouse
2021-10-31  8:31             ` David Woodhouse
2021-11-01  8:16               ` David Woodhouse
2021-11-01 14:18                 ` kernel test robot [this message]
2021-11-01 14:18                   ` [PATCH 5/6] KVM: x86/xen: Maintain valid mapping of Xen shared_inf= kernel test robot
2021-11-01 20:35                 ` kernel test robot
2021-11-01 20:35                   ` kernel test robot
2021-11-01 20:43                   ` David Woodhouse
2021-11-01 20:43                     ` David Woodhouse
2021-10-28 22:22       ` [EXTERNAL] [PATCH] KVM: x86/xen: Fix runstate updates to be atomic when preempting vCPU David Woodhouse
2021-10-29 11:31         ` Joao Martins
2021-10-29 11:56           ` David Woodhouse
2021-10-29 17:10             ` David Woodhouse
2021-10-25 11:43 ` Paolo Bonzini
2021-10-25 13:30   ` Woodhouse, David
2021-10-25 13:29 ` [PATCH v2] " David Woodhouse
2022-02-09 14:30   ` David Woodhouse

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=202111012218.4dsPCxWe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ankur.a.arora@oracle.com \
    --cc=dwmw2@infradead.org \
    --cc=jmattson@google.com \
    --cc=joao.m.martins@oracle.com \
    --cc=karahmed@amazon.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kvm@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=seanjc@google.com \
    --cc=vkuznets@redhat.com \
    --cc=wanpengli@tencent.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 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.