public inbox for kvm-ppc@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@ozlabs.org>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH v2 0/5] Fix LPCR[AIL]=3 implementation and reject
Date: Tue, 24 Sep 2019 06:20:20 +0000	[thread overview]
Message-ID: <20190924062020.GA2642@oak.ozlabs.ibm.com> (raw)
In-Reply-To: <20190916073108.3256-1-npiggin@gmail.com>

On Mon, Sep 16, 2019 at 05:31:03PM +1000, Nicholas Piggin wrote:
> This is an update of the series with comments addressed. Most of them
> were relatively minor details except patch 3, which incorrectly added
> end_cede to guest entry interrupt injection, now fixed.

With this series, compiling a pmac32_defconfig with PR KVM turned on,
I get compile errors as follows:

make[1]: Entering directory '/home/paulus/kernel/test-pmac-kvm'
  Using /home/paulus/kernel/kvm as source for kernel
  GEN     Makefile
  CALL    /home/paulus/kernel/kvm/scripts/checksyscalls.sh
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
  CALL    /home/paulus/kernel/kvm/scripts/atomic/check-atomics.sh
  CHK     include/generated/compile.h
  CALL    /home/paulus/kernel/kvm/arch/powerpc/kernel/prom_init_check.sh
  CC [M]  arch/powerpc/kvm/book3s_pr.o
In file included from /home/paulus/kernel/kvm/arch/powerpc/include/asm/processor.h:9:0,
                 from /home/paulus/kernel/kvm/arch/powerpc/include/asm/thread_info.h:22,
                 from /home/paulus/kernel/kvm/include/linux/thread_info.h:38,
                 from /home/paulus/kernel/kvm/include/asm-generic/preempt.h:5,
                 from ./arch/powerpc/include/generated/asm/preempt.h:1,
                 from /home/paulus/kernel/kvm/include/linux/preempt.h:78,
                 from /home/paulus/kernel/kvm/include/linux/hardirq.h:5,
                 from /home/paulus/kernel/kvm/include/linux/kvm_host.h:7,
                 from /home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c:19:
/home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c: In function ‘kvmppc_inject_interrupt_pr’:
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:67:23: error: left shift count >= width of type [-Werror=shift-count-overflow]
 #define __MASK(X) (1UL<<(X))
                       ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:119:18: note: in expansion of macro ‘__MASK’
 #define MSR_TS_T __MASK(MSR_TS_T_LG) /*  Transaction Transactional */
                  ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:120:22: note: in expansion of macro ‘MSR_TS_T’
 #define MSR_TS_MASK (MSR_TS_T | MSR_TS_S)   /* Transaction State bits */
                      ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:122:41: note: in expansion of macro ‘MSR_TS_MASK’
 #define MSR_TM_TRANSACTIONAL(x) (((x) & MSR_TS_MASK) = MSR_TS_T)
                                         ^
/home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c:118:6: note: in expansion of macro ‘MSR_TM_TRANSACTIONAL’
  if (MSR_TM_TRANSACTIONAL(msr))
      ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:67:23: error: left shift count >= width of type [-Werror=shift-count-overflow]
 #define __MASK(X) (1UL<<(X))
                       ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:118:18: note: in expansion of macro ‘__MASK’
 #define MSR_TS_S __MASK(MSR_TS_S_LG) /*  Transaction Suspended */
                  ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:120:33: note: in expansion of macro ‘MSR_TS_S’
 #define MSR_TS_MASK (MSR_TS_T | MSR_TS_S)   /* Transaction State bits */
                                 ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:122:41: note: in expansion of macro ‘MSR_TS_MASK’
 #define MSR_TM_TRANSACTIONAL(x) (((x) & MSR_TS_MASK) = MSR_TS_T)
                                         ^
/home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c:118:6: note: in expansion of macro ‘MSR_TM_TRANSACTIONAL’
  if (MSR_TM_TRANSACTIONAL(msr))
      ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:67:23: error: left shift count >= width of type [-Werror=shift-count-overflow]
 #define __MASK(X) (1UL<<(X))
                       ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:119:18: note: in expansion of macro ‘__MASK’
 #define MSR_TS_T __MASK(MSR_TS_T_LG) /*  Transaction Transactional */
                  ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:122:57: note: in expansion of macro ‘MSR_TS_T’
 #define MSR_TM_TRANSACTIONAL(x) (((x) & MSR_TS_MASK) = MSR_TS_T)
                                                         ^
/home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c:118:6: note: in expansion of macro ‘MSR_TM_TRANSACTIONAL’
  if (MSR_TM_TRANSACTIONAL(msr))
      ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:67:23: error: left shift count >= width of type [-Werror=shift-count-overflow]
 #define __MASK(X) (1UL<<(X))
                       ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:118:18: note: in expansion of macro ‘__MASK’
 #define MSR_TS_S __MASK(MSR_TS_S_LG) /*  Transaction Suspended */
                  ^
/home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c:119:14: note: in expansion of macro ‘MSR_TS_S’
   new_msr |= MSR_TS_S;
              ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:67:23: error: left shift count >= width of type [-Werror=shift-count-overflow]
 #define __MASK(X) (1UL<<(X))
                       ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:119:18: note: in expansion of macro ‘__MASK’
 #define MSR_TS_T __MASK(MSR_TS_T_LG) /*  Transaction Transactional */
                  ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:120:22: note: in expansion of macro ‘MSR_TS_T’
 #define MSR_TS_MASK (MSR_TS_T | MSR_TS_S)   /* Transaction State bits */
                      ^
/home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c:121:20: note: in expansion of macro ‘MSR_TS_MASK’
   new_msr |= msr & MSR_TS_MASK;
                    ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:67:23: error: left shift count >= width of type [-Werror=shift-count-overflow]
 #define __MASK(X) (1UL<<(X))
                       ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:118:18: note: in expansion of macro ‘__MASK’
 #define MSR_TS_S __MASK(MSR_TS_S_LG) /*  Transaction Suspended */
                  ^
/home/paulus/kernel/kvm/arch/powerpc/include/asm/reg.h:120:33: note: in expansion of macro ‘MSR_TS_S’
 #define MSR_TS_MASK (MSR_TS_T | MSR_TS_S)   /* Transaction State bits */
                                 ^
/home/paulus/kernel/kvm/arch/powerpc/kvm/book3s_pr.c:121:20: note: in expansion of macro ‘MSR_TS_MASK’
   new_msr |= msr & MSR_TS_MASK;
                    ^
cc1: all warnings being treated as errors
make[3]: *** [/home/paulus/kernel/kvm/scripts/Makefile.build:274: arch/powerpc/kvm/book3s_pr.o] Error 1
make[2]: *** [/home/paulus/kernel/kvm/scripts/Makefile.build:490: arch/powerpc/kvm] Error 2
make[1]: *** [/home/paulus/kernel/kvm/Makefile:1079: arch/powerpc] Error 2
make[1]: Leaving directory '/home/paulus/kernel/test-pmac-kvm'
make: *** [Makefile:179: sub-make] Error 2

I think this is attributable to patch 2 of your series.

Paul.

  reply	other threads:[~2019-09-24  6:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-16  7:31 [PATCH v2 0/5] Fix LPCR[AIL]=3 implementation and reject Nicholas Piggin
2019-09-24  6:20 ` Paul Mackerras [this message]
2019-10-02  6:00 ` [PATCH v2 0/5] Fix LPCR[AIL]=3 implementation Nicholas Piggin

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=20190924062020.GA2642@oak.ozlabs.ibm.com \
    --to=paulus@ozlabs.org \
    --cc=kvm-ppc@vger.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