public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH kvm-kmod] fix undefined kvm_vfio_ops
@ 2014-01-24 14:29 Jonas Pfoh
  2014-01-24 15:14 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Pfoh @ 2014-01-24 14:29 UTC (permalink / raw)
  To: kvm@vger.kernel.org, Jan Kiszka

vfio.c is being pulled in from the submodule, but it is not being compiled/linked by the build environment, causing a "Unknown symbol in module" error when loading the resulting module.

Adding vfio.o to the kvm-objs variable in x86/Kbuild fixes this issue

Signed-off-by: Jonas Pfoh <pfoh@sec.in.tum.de>
---

diff --git a/x86/Kbuild b/x86/Kbuild
index d75b756..637b3b1 100644
--- a/x86/Kbuild
+++ b/x86/Kbuild
@@ -1,7 +1,7 @@
 obj-m := kvm.o kvm-intel.o kvm-amd.o
 kvm-objs := kvm_main.o x86.o mmu.o emulate.o irq.o i8259.o pmu.o \
         lapic.o ioapic.o preempt.o i8254.o coalesced_mmio.o irq_comm.o \
-        eventfd.o compat-x86.o async_pf.o cpuid.o irqchip.o \
+        eventfd.o compat-x86.o async_pf.o cpuid.o irqchip.o vfio.o\
         ../external-module-compat.o
 ifeq ($(CONFIG_IOMMU_API)$(CONFIG_PCI),yy)
 kvm-objs += assigned-dev.o iommu.o

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH kvm-kmod] fix undefined kvm_vfio_ops
  2014-01-24 14:29 [PATCH kvm-kmod] fix undefined kvm_vfio_ops Jonas Pfoh
@ 2014-01-24 15:14 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2014-01-24 15:14 UTC (permalink / raw)
  To: Jonas Pfoh, kvm@vger.kernel.org

On 2014-01-24 15:29, Jonas Pfoh wrote:
> vfio.c is being pulled in from the submodule, but it is not being compiled/linked by the build environment, causing a "Unknown symbol in module" error when loading the resulting module.
> 
> Adding vfio.o to the kvm-objs variable in x86/Kbuild fixes this issue
> 
> Signed-off-by: Jonas Pfoh <pfoh@sec.in.tum.de>
> ---
> 
> diff --git a/x86/Kbuild b/x86/Kbuild
> index d75b756..637b3b1 100644
> --- a/x86/Kbuild
> +++ b/x86/Kbuild
> @@ -1,7 +1,7 @@
>  obj-m := kvm.o kvm-intel.o kvm-amd.o
>  kvm-objs := kvm_main.o x86.o mmu.o emulate.o irq.o i8259.o pmu.o \
>          lapic.o ioapic.o preempt.o i8254.o coalesced_mmio.o irq_comm.o \
> -        eventfd.o compat-x86.o async_pf.o cpuid.o irqchip.o \
> +        eventfd.o compat-x86.o async_pf.o cpuid.o irqchip.o vfio.o\
>          ../external-module-compat.o
>  ifeq ($(CONFIG_IOMMU_API)$(CONFIG_PCI),yy)
>  kvm-objs += assigned-dev.o iommu.o
> 

Format was almost perfect format - just your mailer mangled whitespaces.
Make sure to either use git send-email then or to switch of line-wrapper
etc. in the mail client when sending patches - to whichever project.

Unfortunately it broke the build for 3.11 and older kernels. I merged a
variant to next that passed build tests here.

Thanks,
Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-24 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-24 14:29 [PATCH kvm-kmod] fix undefined kvm_vfio_ops Jonas Pfoh
2014-01-24 15:14 ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox