Re: [PATCH 0/7] powerpc: Modernize unhandled signals message

2018-07-25 Thread Michael Neuling
On Tue, 2018-07-24 at 16:27 -0300, Murilo Opsfelder Araujo wrote: > Hi, everyone. > > This series was inspired by the need to modernize and display more > informative messages about unhandled signals. > > The "unhandled signal NN" is not very informative. We thought it would > be helpful adding

Re: [PATCH v4 00/11] hugetlb: Factorize hugetlb architecture primitives

2018-07-25 Thread Alexandre Ghiti
Hi Paul, Thanks for having tested it, I remove mips from my list. Thanks again, Alex On 07/25/2018 02:34 AM, Paul Burton wrote: Hi Alexandre, On Thu, Jul 05, 2018 at 11:07:05AM +, Alexandre Ghiti wrote: In order to reduce copy/paste of functions across architectures and then make riscv

Re: [PATCH v11 19/26] mm: provide speculative fault infrastructure

2018-07-25 Thread zhong jiang
On 2018/7/25 0:10, Laurent Dufour wrote: > > On 24/07/2018 16:26, zhong jiang wrote: >> On 2018/5/17 19:06, Laurent Dufour wrote: >>> From: Peter Zijlstra >>> >>> Provide infrastructure to do a speculative fault (not holding >>> mmap_sem). >>> >>> The not holding of mmap_sem means we can race agai

[PATCH kernel RFC 1/3] powerpc/pseries/iommu: Allow dynamic window to start from zero

2018-07-25 Thread Alexey Kardashevskiy
At the moment the kernel does not expect dynamic windows to ever start at zero on a PCI bus as PAPR requires the hypervisor to create a 32bit default window which starts from zero and the pseries kernel only creates additional windows. However PAPR permits removing the default window and creating

[PATCH kernel RFC 2/3] powerpc/pseries/iommu: Force default DMA window removal

2018-07-25 Thread Alexey Kardashevskiy
It is quite common for a device to support more than 32bit but less than 64bit for DMA, for example, GPUs often support 42..50bits. However the pseries platform only allows huge DMA window (the one which allows the use of more than 2GB of DMA space) for 64bit-capable devices mostly because: 1. we

[PATCH kernel RFC 0/3] powerpc/pseries/iommu: GPU coherent memory pass through

2018-07-25 Thread Alexey Kardashevskiy
I am trying to pass through a 3D controller: [0302]: NVIDIA Corporation GV100GL [Tesla V100 SXM2] [10de:1db1] (rev a1) which has a quite unique feature as coherent memory directly accessible from a POWER9 CPU via an NVLink2 transport. So in addition to passing a PCI device + accompanying NPU de

[PATCH kernel RFC 3/3] powerpc/pseries/iommu: Use memory@ nodes in max RAM address calculation

2018-07-25 Thread Alexey Kardashevskiy
We might have memory@ nodes with "linux,usable-memory" set to zero (for example, to replicate powernv's behaviour for GPU coherent memory) which means that the memory needs an extra initialization but since it can be used afterwards, the pseries platform will try mapping it for DMA so the DMA windo

[PATCH] powerpc/64s: fix page table fragment refcount race vs speculative references

2018-07-25 Thread Nicholas Piggin
The page table fragment allocator uses the main page refcount racily with respect to speculative references. A customer observed a BUG due to page table page refcount underflow in the fragment allocator. This can be caused by the fragment allocator set_page_count stomping on a speculative reference

[PATCH] powerpc/64s: free page table caches at exit_mmap time

2018-07-25 Thread Nicholas Piggin
The kernel page table caches are tied to init_mm, so there is no more need for them after userspace is finished. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/mmu_context_book3s64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/mmu_context_book3s64

Re: [PATCH v11 19/26] mm: provide speculative fault infrastructure

2018-07-25 Thread Laurent Dufour
On 25/07/2018 11:04, zhong jiang wrote: > On 2018/7/25 0:10, Laurent Dufour wrote: >> >> On 24/07/2018 16:26, zhong jiang wrote: >>> On 2018/5/17 19:06, Laurent Dufour wrote: From: Peter Zijlstra Provide infrastructure to do a speculative fault (not holding mmap_sem). >

Re: [PATCH v11 19/26] mm: provide speculative fault infrastructure

2018-07-25 Thread zhong jiang
On 2018/7/25 18:44, Laurent Dufour wrote: > > On 25/07/2018 11:04, zhong jiang wrote: >> On 2018/7/25 0:10, Laurent Dufour wrote: >>> On 24/07/2018 16:26, zhong jiang wrote: On 2018/5/17 19:06, Laurent Dufour wrote: > From: Peter Zijlstra > > Provide infrastructure to do a specula

Re: [PATCH v4 1/1] KVM: PPC: Book3S HV: pack VCORE IDs to access full VCPU ID space

2018-07-25 Thread Paul Mackerras
On Wed, Jul 25, 2018 at 04:12:02PM +1000, Sam Bobroff wrote: > From: Sam Bobroff > > It is not currently possible to create the full number of possible > VCPUs (KVM_MAX_VCPUS) on Power9 with KVM-HV when the guest uses less > threads per core than it's core stride (or "VSMT mode"). This is > becau

Re: [RFC PATCH v2] powerpc/64s: Move idle code to powernv C code

2018-07-25 Thread Gautham R Shenoy
Hello Nicholas, On Sat, Jul 21, 2018 at 02:29:24PM +1000, Nicholas Piggin wrote: > Reimplement Book3S idle code to C, in the powernv platform code. > Assembly stubs are used to save and restore the stack frame and > non-volatile GPRs before going to idle, but these are small and > mostly agnostic

Re: [RFC PATCH v2] powerpc/64s: Move idle code to powernv C code

2018-07-25 Thread Nicholas Piggin
Hi Gautham, Thanks for the review, I also missed one or two things from you last one, but I haven't forgotten them. On Wed, 25 Jul 2018 16:56:45 +0530 Gautham R Shenoy wrote: > Hello Nicholas, > > On Sat, Jul 21, 2018 at 02:29:24PM +1000, Nicholas Piggin wrote: > > Reimplement Book3S idle cod

Re: [PATCH] powerpc/64s: free page table caches at exit_mmap time

2018-07-25 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > The kernel page table caches are tied to init_mm, so there is no > more need for them after userspace is finished. > The commit message could be improved with reference to active_mm. something like? destroy_context get called when we drop the last reference for mm whi

Re: [PATCH 4/7 v6] iommu/arm-smmu: Add support for the fsl-mc bus

2018-07-25 Thread Robin Murphy
On 09/07/18 12:18, Nipun Gupta wrote: Implement bus specific support for the fsl-mc bus including registering arm_smmu_ops and bus specific device add operations. I guess this is about as neat as it can get; Reviewed-by: Robin Murphy Signed-off-by: Nipun Gupta --- drivers/iommu/arm-smmu.

Re: [PATCH 5/7 v6] bus/fsl-mc: support dma configure for devices on fsl-mc bus

2018-07-25 Thread Robin Murphy
On 09/07/18 12:18, Nipun Gupta wrote: This patch adds support of dma configuration for devices on fsl-mc bus using 'dma_configure' callback for busses. Also, directly calling arch_setup_dma_ops is removed from the fsl-mc bus. Reviewed-by: Robin Murphy Signed-off-by: Nipun Gupta Reviewed-by:

Re: [PATCH 1/7 v6] Documentation: fsl-mc: add iommu-map device-tree binding for fsl-mc bus

2018-07-25 Thread Robin Murphy
On 09/07/18 12:18, Nipun Gupta wrote: The existing IOMMU bindings cannot be used to specify the relationship between fsl-mc devices and IOMMUs. This patch adds a generic binding for mapping fsl-mc devices to IOMMUs, using iommu-map property. No more nits from me :) Acked-by: Robin Murphy Si

Re: [PATCH 1/4] treewide: convert ISO_8859-1 text comments to utf-8

2018-07-25 Thread Arnd Bergmann
tools/perf/tests/.gitignore: LLVM byte-codes, uncompressed On Wed, Jul 25, 2018 at 2:55 AM, Andrew Morton wrote: > On Tue, 24 Jul 2018 17:13:20 -0700 Joe Perches wrote: > >> On Tue, 2018-07-24 at 14:00 -0700, Andrew Morton wrote: >> > On Tue, 24 Jul 2018 13:13:25 +0200

Re: [RFC 4/4] virtio: Add platform specific DMA API translation for virito devices

2018-07-25 Thread Michael S. Tsirkin
On Mon, Jul 23, 2018 at 07:46:09AM +0530, Anshuman Khandual wrote: > There is a redundant definition of virtio_has_iommu_quirk in the tools > directory (tools/virtio/linux/virtio_config.h) which does not seem to > be used any where. I guess that can be removed without problem. It's there just to m

[PATCH] powerpc/64s/radix: tlb do not flush on page size when fullmm

2018-07-25 Thread Nicholas Piggin
When the mm is being torn down there will be a full PID flush so there is no need to flush the TLB on page size changes. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/tlb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/include/asm/tlb.h b/arch/powerpc/include/

[RFC PATCH 0/4] mm: mmu_gather changes to support explicit paging

2018-07-25 Thread Nicholas Piggin
The first 3 patches in this series are some generic mm changes I would like to make, including a possible fix which may(?) be needed for ARM64. Other than the bugfix, these first 3 patches should not change anything so hopefully they aren't too controversial. The powerpc patch is also there for re

[RFC PATCH 1/4] mm: move tlb_table_flush to tlb_flush_mmu_free

2018-07-25 Thread Nicholas Piggin
There is no need to call this from tlb_flush_mmu_tlbonly, it logically belongs with tlb_flush_mmu_free. This allows some code consolidation with a subsequent fix. Signed-off-by: Nicholas Piggin --- mm/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/memory.c

[RFC PATCH 2/4] mm: mmu_notifier fix for tlb_end_vma

2018-07-25 Thread Nicholas Piggin
The generic tlb_end_vma does not call invalidate_range mmu notifier, and it resets resets the mmu_gather range, which means the notifier won't be called on part of the range in case of an unmap that spans multiple vmas. ARM64 seems to be the only arch I could see that has notifiers and uses the ge

[RFC PATCH 3/4] mm: allow arch to have tlb_flush caled on an empty TLB range

2018-07-25 Thread Nicholas Piggin
powerpc wants to de-couple page table caching structure flushes from TLB flushes, which will make it possible to have mmu_gather with freed page table pages but no TLB range. These must be sent to tlb_flush, so allow the arch to specify when mmu_gather with empty ranges should have tlb_flush called

[RFC PATCH 4/4] powerpc/64s/radix: optimise TLB flush with precise TLB ranges in mmu_gather

2018-07-25 Thread Nicholas Piggin
The mmu_gather APIs keep track of the invalidated address range, and the generic page table freeing accessors expand the invalidated range to cover the addresses corresponding to the page tables even if there are no ptes and therefore no TLB entries to invalidate. This is done for architectures tha

Re: [PATCH] powerpc/64s/radix: tlb do not flush on page size when fullmm

2018-07-25 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > When the mm is being torn down there will be a full PID flush so > there is no need to flush the TLB on page size changes. and that tlb flush is PID flush since tlb->fulmm is set? So this avoids multiple PID tlb flush. Reviewed-by: Aneesh Kumar K.V > > Signed-off-by

Re: [PATCH 6/7] powerpc/traps: Print signal name for unhandled signals

2018-07-25 Thread Gustavo Romero
Hi Murilo, LGTM. Just a comment: On 07/24/2018 04:27 PM, Murilo Opsfelder Araujo wrote: This adds a human-readable name in the unhandled signal message. Before this patch, a page fault looked like: Jul 11 16:04:11 localhost kernel: pandafault[6303]: unhandled signal 11 at 1

Re: [PATCH 1/4] treewide: convert ISO_8859-1 text comments to utf-8

2018-07-25 Thread Joe Perches
On Wed, 2018-07-25 at 15:12 +0200, Arnd Bergmann wrote: > tools/perf/tests/.gitignore: > LLVM byte-codes, uncompressed > On Wed, Jul 25, 2018 at 2:55 AM, Andrew Morton > wrote: > > On Tue, 24 Jul 2018 17:13:20 -0700 Joe Perches wrote: > > > > > On Tue, 2018-07-24 at 1

Re: [PATCH 2/7] powerpc/traps: Return early in show_signal_msg()

2018-07-25 Thread LEROY Christophe
Murilo Opsfelder Araujo a écrit : Modify logic of show_signal_msg() to return early, if possible. Replace printk_ratelimited() by printk() and a default rate limit burst to limit displaying unhandled signals messages. Can you explain more the benefits of this change ? Christophe Signed-o

Re: [PATCH 6/7] powerpc/traps: Print signal name for unhandled signals

2018-07-25 Thread LEROY Christophe
Murilo Opsfelder Araujo a écrit : This adds a human-readable name in the unhandled signal message. Before this patch, a page fault looked like: Jul 11 16:04:11 localhost kernel: pandafault[6303]: unhandled signal 11 at 17d0 nip 161c lr 7fff93c55100 code 2 i

Re: [PATCH v07 2/9] hotplug/cpu: Add operation queuing function

2018-07-25 Thread Michael Bringmann
See below. On 07/23/2018 10:54 AM, John Allen wrote: > On Fri, Jul 13, 2018 at 03:18:01PM -0500, Michael Bringmann wrote: >> migration/dlpar: This patch adds function dlpar_queue_action() >> which will queued up information about a CPU/Memory 'readd' >> operation according to resource type, action

Re: [PATCH v07 2/9] hotplug/cpu: Add operation queuing function

2018-07-25 Thread Michael Bringmann
See below. On 07/23/2018 12:51 PM, Nathan Fontenot wrote: > On 07/13/2018 03:18 PM, Michael Bringmann wrote: >> migration/dlpar: This patch adds function dlpar_queue_action() >> which will queued up information about a CPU/Memory 'readd' >> operation according to resource type, action code, and DR

Re: [PATCH 7/7] powerpc/traps: Show instructions on exceptions

2018-07-25 Thread LEROY Christophe
Murilo Opsfelder Araujo a écrit : Move show_instructions() declaration to arch/powerpc/include/asm/stacktrace.h and include asm/stracktrace.h in arch/powerpc/kernel/process.c, which contains the implementation. Modify show_instructions() not to call __kernel_text_address(), allowing userspa

Re: [PATCH v8 2/2] hwmon: ibmpowernv: Add attributes to enable/disable sensor groups

2018-07-25 Thread Guenter Roeck
On Tue, Jul 24, 2018 at 02:43:09PM +0530, Shilpasri G Bhat wrote: > OPAL firmware provides the facility for some groups of sensors to be > enabled/disabled at runtime to give the user the option of using the > system resources for collecting these sensors or not. > > For example, on POWER9 systems

[PATCH V2 1/6] powerpc/mm/book3s: Update pmd_present to look at _PAGE_PRESENT bit

2018-07-25 Thread Aneesh Kumar K.V
With this patch we use 0x8000UL (_PAGE_PRESENT) to indicate a valid pgd/pud/pmd entry. We also switch the p**_present() to look at this bit. With pmd_present, we have a special case. We need to make sure we consider a pmd marked invalid during THP split as present. Right now we clear t

[PATCH V2 2/6] powerpc/mm/hugetlb/book3s: add _PAGE_PRESENT to hugepd pointer.

2018-07-25 Thread Aneesh Kumar K.V
This make hugetlb directory pointer similar to other page able entries. A hugepd entry is identified by lack of _PAGE_PTE bit set and directory size stored in HUGEPD_SHIFT_MASK. We update that to also look at _PAGE_PRESENT Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/ha

[PATCH V2 3/6] powerpc/mm/book3s: Check for pmd_large instead of pmd_trans_huge

2018-07-25 Thread Aneesh Kumar K.V
Update few code paths to check for pmd_large. set_pmd_at: We want to use this to store swap pte at pmd level. For swap ptes we don't want to set H_PAGE_THP_HUGE. Hence check for pmd_large in set_pmd_at. This remove the false WARN_ON when using this with swap pmd entry. pmd_page: We don't really u

[PATCH V2 4/6] arch/powerpc/mm/hash: validate the pte entries before handling the hash fault

2018-07-25 Thread Aneesh Kumar K.V
Make sure we are operating on THP and hugetlb entries in the respective hash fault handling routines. No functional change in this patch. If we walked the table wrongly before, we will retry the access. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/hugepage-hash64.c| 6 ++ arch/po

[PATCH V2 5/6] powerpc/mm/thp: update pmd_trans_huge to check for pmd_present

2018-07-25 Thread Aneesh Kumar K.V
We need to make sure pmd_trans_huge returns false for a pmd migration entry. We mark the migration entry by clearing the _PAGE_PRESENT bit. We keep the _PAGE_PTE bit set to indicate a leaf page table entry. Hence we need to make sure we check for pmd_present() so that pmd_trans_huge won't return tr

[PATCH V2 6/6] powerpc/mm:book3s: Enable THP migration support

2018-07-25 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/pgtable.h | 8 arch/powerpc/platforms/Kconfig.cputype | 1 + 2 files changed, 9 insertions(+) diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc/include/asm/book3s/64/pgtable.h index 8b80

Infinite looping observed in __offline_pages

2018-07-25 Thread John Allen
Hi All, Under heavy stress and constant memory hot add/remove, I have observed the following loop to occasionally loop infinitely: mm/memory_hotplug.c:__offline_pages repeat: /* start memory hot removal */ ret = -EINTR; if (signal_pending(current)) goto fai

Re: [PATCH 0/7] powerpc: Modernize unhandled signals message

2018-07-25 Thread Murilo Opsfelder Araujo
Hi, Mikey. On Wed, Jul 25, 2018 at 05:00:21PM +1000, Michael Neuling wrote: > On Tue, 2018-07-24 at 16:27 -0300, Murilo Opsfelder Araujo wrote: > > Hi, everyone. > > > > This series was inspired by the need to modernize and display more > > informative messages about unhandled signals. > > > >

Re: [PATCH 6/7] powerpc/traps: Print signal name for unhandled signals

2018-07-25 Thread Murilo Opsfelder Araujo
Hi, Gustavo. On Wed, Jul 25, 2018 at 12:19:00PM -0300, Gustavo Romero wrote: > Hi Murilo, > > LGTM. > > Just a comment: > > On 07/24/2018 04:27 PM, Murilo Opsfelder Araujo wrote: > > This adds a human-readable name in the unhandled signal message. > > > > Before this patch, a page fault looked

Re: Infinite looping observed in __offline_pages

2018-07-25 Thread Michal Hocko
On Wed 25-07-18 13:11:15, John Allen wrote: [...] > Does a failure in do_migrate_range indicate that the range is unmigratable > and the loop in __offline_pages should terminate and goto failed_removal? Or > should we allow a certain number of retrys before we > give up on migrating the range? Unf

Re: [PATCH 6/7] powerpc/traps: Print signal name for unhandled signals

2018-07-25 Thread Murilo Opsfelder Araujo
Hi, Christophe. On Wed, Jul 25, 2018 at 05:49:27PM +0200, LEROY Christophe wrote: > Murilo Opsfelder Araujo a écrit : > > > This adds a human-readable name in the unhandled signal message. > > > > Before this patch, a page fault looked like: > > > > Jul 11 16:04:11 localhost kernel: pandafaul

Re: [PATCH 2/7] powerpc/traps: Return early in show_signal_msg()

2018-07-25 Thread Murilo Opsfelder Araujo
Hi, Christophe. On Wed, Jul 25, 2018 at 05:42:28PM +0200, LEROY Christophe wrote: > Murilo Opsfelder Araujo a écrit : > > > Modify logic of show_signal_msg() to return early, if possible. Replace > > printk_ratelimited() by printk() and a default rate limit burst to limit > > displaying unhandl

Re: [PATCH] net: ethernet: fs-enet: Use generic CRC32 implementation

2018-07-25 Thread David Miller
From: Krzysztof Kozlowski Date: Mon, 23 Jul 2018 18:20:20 +0200 > Use generic kernel CRC32 implementation because it: > 1. Should be faster (uses lookup tables), > 2. Removes duplicated CRC generation code, > 3. Uses well-proven algorithm instead of coding it one more time. > > Suggested-by: Eri

Re: [PATCH 7/7] powerpc/traps: Show instructions on exceptions

2018-07-25 Thread Murilo Opsfelder Araujo
Hi, Christophe. On Wed, Jul 25, 2018 at 06:01:34PM +0200, LEROY Christophe wrote: > Murilo Opsfelder Araujo a écrit : > > > Move show_instructions() declaration to > > arch/powerpc/include/asm/stacktrace.h > > and include asm/stracktrace.h in arch/powerpc/kernel/process.c, which > > contains >

[PATCH] powerpc/pasemi: Seach for PCI root bus by compatible property

2018-07-25 Thread Darren Stevens
Pasemi arch code finds the root of the PCI-e bus by searching the device-tree for a node called 'pxp'. But the root bus has a compatible property of 'pasemi,rootbus' so search for that instead. Signed-off-by: Darren Stevens --- This works on the Amigaone X1000, I don't know if this method of fi

[PATCH] powerpc/pasemi: Use pr_err/pr_warn... for kernel messages

2018-07-25 Thread Darren Stevens
Pasemi code still uses printk(KERN_ERR/KERN_WARN ... change these to pr_err(, pr_warn(... to match other powerpc arch code. No functional changes. Signed-off-by: Darren Stevens --- arch/powerpc/platforms/pasemi/dma_lib.c |6 ++-- arch/powerpc/platforms/pasemi/gpio_mdio.c |2 +- arch/p

Re: [PATCH 0/7] powerpc: Modernize unhandled signals message

2018-07-25 Thread Michael Neuling
> > Should we prefix every line with the PID to avoid this? > > That's possible. An alternative would be prefixing each line with the > process name and its PID, as in the first line. For example: > > pandafault[10758]: segfault (11) at 17d0 nip 161c > lr 7fff

Re: [PATCH 0/7] powerpc: Modernize unhandled signals message

2018-07-25 Thread Michael Ellerman
Murilo Opsfelder Araujo writes: > On Wed, Jul 25, 2018 at 05:00:21PM +1000, Michael Neuling wrote: >> On Tue, 2018-07-24 at 16:27 -0300, Murilo Opsfelder Araujo wrote: >> > This series was inspired by the need to modernize and display more >> > informative messages about unhandled signals. ... >>

Re: [PATCH v4 1/1] KVM: PPC: Book3S HV: pack VCORE IDs to access full VCPU ID space

2018-07-25 Thread Paul Mackerras
On Wed, Jul 25, 2018 at 04:12:02PM +1000, Sam Bobroff wrote: > From: Sam Bobroff > > It is not currently possible to create the full number of possible > VCPUs (KVM_MAX_VCPUS) on Power9 with KVM-HV when the guest uses less > threads per core than it's core stride (or "VSMT mode"). This is > becau

Re: [PATCH v4 00/11] hugetlb: Factorize hugetlb architecture primitives

2018-07-25 Thread Alex Ghiti
Hi everyone, This is the result of the build for all arches tackled in this series rebased on 4.18-rc6: arm:     versatile_defconfig: without huge page OK     keystone_defconfig: with huge page OK arm64:     defconfig: with huge page OK ia64:     generic_defconfig: with huge pa

[PATCH 2/2] KVM: PPC: Book3S HV: Read kvm->arch.emul_smt_mode under kvm->lock

2018-07-25 Thread Paul Mackerras
Commit 1e175d2 ("KVM: PPC: Book3S HV: Pack VCORE IDs to access full VCPU ID space", 2018-07-25) added code that uses kvm->arch.emul_smt_mode before any VCPUs are created. However, userspace can change kvm->arch.emul_smt_mode at any time up until the first VCPU is created. Hence it is (theoreticall

[PATCH 1/2] KVM: PPC: Book3S HV: Allow creating max number of VCPUs on POWER9

2018-07-25 Thread Paul Mackerras
Commit 1e175d2 ("KVM: PPC: Book3S HV: Pack VCORE IDs to access full VCPU ID space", 2018-07-25) allowed use of VCPU IDs up to KVM_MAX_VCPU_ID on POWER9 in all guest SMT modes and guest emulated hardware SMT modes. However, with the current definition of KVM_MAX_VCPU_ID, a guest SMT mode of 1 and a