P.A. Semi: "PR" KVM configure error after KVM changes for 4.12

3 messages, 2 authors, 2017-05-09 · open the first message on its own page

P.A. Semi: "PR" KVM configure error after KVM changes for 4.12

From: Christian Zigotzky <hidden>
Date: 2017-05-09 08:49:09

Hi All,

After the first batch of KVM changes for 4.12 merge window I get the 
following error message if I want to configure the Linux kernel with KVM 
PR support on my P.A. Semi board.

warning: (KVM_BOOK3S_64) selects SPAPR_TCE_IOMMU which has unmet direct 
dependencies (IOMMU_SUPPORT && (PPC_POWERNV || PPC_PSERIES))

Did you change the system requirements for KVM? Does it only work on IBM 
pSeries machines now?

Before the changes, I successfully compiled the Git version of kernel 
4.12 with KVM PR support. I successfully tested it with Mac-on-Linux/KVM PR.

Cheers,

Christian

Re: P.A. Semi: "PR" KVM configure error after KVM changes for 4.12

From: Paul Mackerras <hidden>
Date: 2017-05-09 09:08:41

On Tue, May 09, 2017 at 10:42:51AM +0200, Christian Zigotzky wrote:
Hi All,

After the first batch of KVM changes for 4.12 merge window I get the
following error message if I want to configure the Linux kernel with KVM PR
support on my P.A. Semi board.

warning: (KVM_BOOK3S_64) selects SPAPR_TCE_IOMMU which has unmet direct
dependencies (IOMMU_SUPPORT && (PPC_POWERNV || PPC_PSERIES))

Did you change the system requirements for KVM? Does it only work on IBM
pSeries machines now?
That probably came in with Alexey Kardashevskiy's patches to
accelerate the TCE (IOMMU) hypercalls.  There was no deliberate
intention to restrict PR KVM to IBM machines.  I'll fix it.

However, I expect that at least for now we will not support PCI
pass-through on machines other than IBM pSeries, because the KVM vfio
code needs some specific services from the iommu layer which are
platform-dependent and probably not implemented on other platforms
(maple, pasemi, powermac).  If you have been using PCI pass-through
successfully in the past with PR KVM then please let me know and we'll
look at what is needed to keep it working.

Paul.

Re: P.A. Semi: "PR" KVM configure error after KVM changes for 4.12

From: Christian Zigotzky <hidden>
Date: 2017-05-09 10:33:35

On 09 May 2017 at 11:08 AM, Paul Mackerras wrote:
On Tue, May 09, 2017 at 10:42:51AM +0200, Christian Zigotzky wrote:
quoted
Hi All,

After the first batch of KVM changes for 4.12 merge window I get the
following error message if I want to configure the Linux kernel with KVM PR
support on my P.A. Semi board.

warning: (KVM_BOOK3S_64) selects SPAPR_TCE_IOMMU which has unmet direct
dependencies (IOMMU_SUPPORT && (PPC_POWERNV || PPC_PSERIES))

Did you change the system requirements for KVM? Does it only work on IBM
pSeries machines now?
That probably came in with Alexey Kardashevskiy's patches to
accelerate the TCE (IOMMU) hypercalls.  There was no deliberate
intention to restrict PR KVM to IBM machines.  I'll fix it.

However, I expect that at least for now we will not support PCI
pass-through on machines other than IBM pSeries, because the KVM vfio
code needs some specific services from the iommu layer which are
platform-dependent and probably not implemented on other platforms
(maple, pasemi, powermac).  If you have been using PCI pass-through
successfully in the past with PR KVM then please let me know and we'll
look at what is needed to keep it working.

Paul.
Hi Paul,

Thanks a lot for your fast reply. I had to select POWERNV as well 
because without it, the kernel didn't compile. After that I tested 
Mac-on-Linux/KVM PR with the new kernel. It works without any problems.

Screenshot: https://plus.google.com/115515624056477014971/posts/fVrEXs3S3dU

It would be nice if you could fix it.

Thanks,

Christian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help