From: kbuild test robot <lkp@intel.com>
To: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: "Stephen Hemminger" <sthemmin@microsoft.com>,
kvm@vger.kernel.org, "Radim Krčmář" <rkrcmar@redhat.com>,
"Haiyang Zhang" <haiyangz@microsoft.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Michael Kelley (EOSG)" <Michael.H.Kelley@microsoft.com>,
"Ingo Molnar" <mingo@redhat.com>,
kbuild-all@01.org, "Andy Lutomirski" <luto@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>,
devel@linuxdriverproject.org,
"Thomas Gleixner" <tglx@linutronix.de>,
"Mohammed Gamal" <mmorsy@redhat.com>,
"Roman Kagan" <rkagan@virtuozzo.com>
Subject: Re: [PATCH v3 3/7] x86/hyper-v: reenlightenment notifications support
Date: Fri, 19 Jan 2018 19:11:58 +0800 [thread overview]
Message-ID: <201801191829.4gWN3Hwf%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180116182700.1042-4-vkuznets@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 6746 bytes --]
Hi Vitaly,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/auto-latest]
[also build test WARNING on v4.15-rc8 next-20180118]
[cannot apply to tip/x86/core kvm/linux-next]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Vitaly-Kuznetsov/x86-kvm-hyperv-stable-clocksorce-for-L2-guests-when-running-nested-KVM-on-Hyper-V/20180119-160814
config: x86_64-randconfig-s5-01191733 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/string.h:3:0,
from include/linux/string.h:19,
from arch/x86/include/asm/page_32.h:35,
from arch/x86/include/asm/page.h:14,
from arch/x86/include/asm/thread_info.h:12,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from arch/x86/include/asm/vgtod.h:6,
from arch/x86//entry/vdso/vdso32/../vclock_gettime.c:15,
from arch/x86//entry/vdso/vdso32/vclock_gettime.c:33:
arch/x86/include/asm/pgtable.h: In function 'clone_pgd_range':
arch/x86/include/asm/pgtable.h:1129:9: error: implicit declaration of function 'kernel_to_user_pgdp'; did you mean 'u64_to_user_ptr'? [-Werror=implicit-function-declaration]
memcpy(kernel_to_user_pgdp(dst), kernel_to_user_pgdp(src),
^
arch/x86/include/asm/string_32.h:183:42: note: in definition of macro 'memcpy'
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
>> arch/x86/include/asm/pgtable.h:1129:9: warning: passing argument 1 of '__builtin_memcpy' makes pointer from integer without a cast [-Wint-conversion]
memcpy(kernel_to_user_pgdp(dst), kernel_to_user_pgdp(src),
^
arch/x86/include/asm/string_32.h:183:42: note: in definition of macro 'memcpy'
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
arch/x86/include/asm/pgtable.h:1129:9: note: expected 'void *' but argument is of type 'int'
memcpy(kernel_to_user_pgdp(dst), kernel_to_user_pgdp(src),
^
arch/x86/include/asm/string_32.h:183:42: note: in definition of macro 'memcpy'
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
arch/x86/include/asm/pgtable.h:1129:35: warning: passing argument 2 of '__builtin_memcpy' makes pointer from integer without a cast [-Wint-conversion]
memcpy(kernel_to_user_pgdp(dst), kernel_to_user_pgdp(src),
^
arch/x86/include/asm/string_32.h:183:45: note: in definition of macro 'memcpy'
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
arch/x86/include/asm/pgtable.h:1129:35: note: expected 'const void *' but argument is of type 'int'
memcpy(kernel_to_user_pgdp(dst), kernel_to_user_pgdp(src),
^
arch/x86/include/asm/string_32.h:183:45: note: in definition of macro 'memcpy'
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
cc1: some warnings being treated as errors
vim +/__builtin_memcpy +1129 arch/x86/include/asm/pgtable.h
1501899a arch/x86/include/asm/pgtable.h Dan Williams 2017-11-29 1111
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1112 /*
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1113 * clone_pgd_range(pgd_t *dst, pgd_t *src, int count);
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1114 *
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1115 * dst - pointer to pgd range anwhere on a pgd page
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1116 * src - ""
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1117 * count - the number of pgds to copy.
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1118 *
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1119 * dst and src can be on the same page, but the range must not overlap,
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1120 * and must not cross a page boundary.
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1121 */
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1122 static inline void clone_pgd_range(pgd_t *dst, pgd_t *src, int count)
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1123 {
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1124 memcpy(dst, src, count * sizeof(pgd_t));
fc2fbc85 arch/x86/include/asm/pgtable.h Dave Hansen 2017-12-04 1125 #ifdef CONFIG_PAGE_TABLE_ISOLATION
fc2fbc85 arch/x86/include/asm/pgtable.h Dave Hansen 2017-12-04 1126 if (!static_cpu_has(X86_FEATURE_PTI))
fc2fbc85 arch/x86/include/asm/pgtable.h Dave Hansen 2017-12-04 1127 return;
fc2fbc85 arch/x86/include/asm/pgtable.h Dave Hansen 2017-12-04 1128 /* Clone the user space pgd as well */
fc2fbc85 arch/x86/include/asm/pgtable.h Dave Hansen 2017-12-04 @1129 memcpy(kernel_to_user_pgdp(dst), kernel_to_user_pgdp(src),
fc2fbc85 arch/x86/include/asm/pgtable.h Dave Hansen 2017-12-04 1130 count * sizeof(pgd_t));
fc2fbc85 arch/x86/include/asm/pgtable.h Dave Hansen 2017-12-04 1131 #endif
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1132 }
85958b46 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-03-17 1133
:::::: The code at line 1129 was first introduced by commit
:::::: fc2fbc8512ed08d1de7720936fd7d2e4ce02c3a2 x86/mm/pti: Populate user PGD
:::::: TO: Dave Hansen <dave.hansen@linux.intel.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31973 bytes --]
[-- Attachment #3: Type: text/plain, Size: 169 bytes --]
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2018-01-19 11:11 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 18:26 [PATCH v3 0/7] x86/kvm/hyperv: stable clocksorce for L2 guests when running nested KVM on Hyper-V Vitaly Kuznetsov
2018-01-16 18:26 ` [PATCH v3 1/7] x86/hyper-v: check for required priviliges in hyperv_init() Vitaly Kuznetsov
2018-01-16 18:26 ` [PATCH v3 2/7] x86/hyper-v: add a function to read both TSC and TSC page value simulateneously Vitaly Kuznetsov
2018-01-16 18:26 ` [PATCH v3 3/7] x86/hyper-v: reenlightenment notifications support Vitaly Kuznetsov
2018-01-16 18:33 ` Thomas Gleixner
2018-01-19 10:21 ` kbuild test robot
2018-01-19 10:47 ` Vitaly Kuznetsov
2018-01-20 7:48 ` Thomas Gleixner
2018-01-22 1:22 ` Michael Kelley (EOSG)
2018-01-22 12:06 ` Vitaly Kuznetsov
2018-01-23 13:41 ` Vitaly Kuznetsov
2018-01-23 14:02 ` Michael Kelley (EOSG)
2018-01-23 14:07 ` Vitaly Kuznetsov
2018-01-22 10:41 ` Vitaly Kuznetsov
2018-01-19 11:11 ` kbuild test robot [this message]
2018-01-16 18:26 ` [PATCH v3 4/7] x86/hyper-v: redirect reenlightment notifications on CPU offlining Vitaly Kuznetsov
2018-01-16 18:31 ` Thomas Gleixner
2018-01-16 18:26 ` [PATCH v3 5/7] x86/irq: Count Hyper-V reenlightenment interrupts Vitaly Kuznetsov
2018-01-16 18:32 ` Thomas Gleixner
2018-01-16 18:26 ` [PATCH v3 6/7] x86/kvm: pass stable clocksource to guests when running nested on Hyper-V Vitaly Kuznetsov
2018-01-16 18:27 ` [PATCH v3 7/7] x86/kvm: support Hyper-V reenlightenment Vitaly Kuznetsov
2018-01-19 11:15 ` kbuild test robot
2018-01-19 11:15 ` [RFC PATCH] x86/kvm: kvm_hyperv_tsc_notifier() can be static 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=201801191829.4gWN3Hwf%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Michael.H.Kelley@microsoft.com \
--cc=devel@linuxdriverproject.org \
--cc=haiyangz@microsoft.com \
--cc=hpa@zytor.com \
--cc=kbuild-all@01.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=mmorsy@redhat.com \
--cc=pbonzini@redhat.com \
--cc=rkagan@virtuozzo.com \
--cc=rkrcmar@redhat.com \
--cc=sthemmin@microsoft.com \
--cc=tglx@linutronix.de \
--cc=vkuznets@redhat.com \
--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
all inboxes | Powered by JetHome®