public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-10-15  9:53 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-10-15  9:53 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 09:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-10-15 10:11 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-10-15 10:11 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 09:53
Message generated for change (Comment added) made by nuitari3
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

>Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 10:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-10-15 14:18 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-10-15 14:18 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 09:53
Message generated for change (Comment added) made by nuitari3
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

>Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 14:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 10:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-12-15 18:00 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-12-15 18:00 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 11:53
Message generated for change (Comment added) made by wg1
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 19:00

Message:
I'm seeing this too, with kvm-79 and now kvm-81 on Linux-2.6.27.7 and
Linux-2.6.27.9.
I'm surprised that such a FTBS is not more prevalent..
For now, I have helped myself with the attached patch.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 16:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 12:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-12-15 18:11 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-12-15 18:11 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 11:53
Message generated for change (Comment added) made by wg1
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 19:11

Message:
Sorry, cannot seem to attach a file (I looked hard!), so here the patch
inline (applies to kvm-81, too):

--- kernel/include/linux/kvm_host.h.orig        2008-11-12
13:23:58.000000000 +0100
+++ kernel/include/linux/kvm_host.h     2008-11-15 21:08:02.000000000
+0100
@@ -46,6 +46,7 @@
  * the COPYING file in the top-level directory.
  */
 
+#include <linux/mmu_notifier.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/list.h>
--- kernel/include/linux/mmu_notifier.h.orig    2008-12-15
18:31:52.000000000 +0100
+++ kernel/include/linux/mmu_notifier.h 2008-11-15 21:19:08.000000000
+0100
@@ -0,0 +1,6 @@
+#ifndef _LINUX_MMU_NOTIFIER_H
+#define _LINUX_MMU_NOTIFIER_H
+
+struct mmu_notifier {};
+
+#endif


----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 19:00

Message:
I'm seeing this too, with kvm-79 and now kvm-81 on Linux-2.6.27.7 and
Linux-2.6.27.9.
I'm surprised that such a FTBS is not more prevalent..
For now, I have helped myself with the attached patch.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 16:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 12:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-12-24 13:49 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-12-24 13:49 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 11:53
Message generated for change (Comment added) made by avik
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

>Comment By: Avi Kivity (avik)
Date: 2008-12-24 15:49

Message:
You should enable the host kernel's kvm modules even if you don't plan to
use them, so they will select functionality like mmu notifiers.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 20:11

Message:
Sorry, cannot seem to attach a file (I looked hard!), so here the patch
inline (applies to kvm-81, too):

--- kernel/include/linux/kvm_host.h.orig        2008-11-12
13:23:58.000000000 +0100
+++ kernel/include/linux/kvm_host.h     2008-11-15 21:08:02.000000000
+0100
@@ -46,6 +46,7 @@
  * the COPYING file in the top-level directory.
  */
 
+#include <linux/mmu_notifier.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/list.h>
--- kernel/include/linux/mmu_notifier.h.orig    2008-12-15
18:31:52.000000000 +0100
+++ kernel/include/linux/mmu_notifier.h 2008-11-15 21:19:08.000000000
+0100
@@ -0,0 +1,6 @@
+#ifndef _LINUX_MMU_NOTIFIER_H
+#define _LINUX_MMU_NOTIFIER_H
+
+struct mmu_notifier {};
+
+#endif


----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 20:00

Message:
I'm seeing this too, with kvm-79 and now kvm-81 on Linux-2.6.27.7 and
Linux-2.6.27.9.
I'm surprised that such a FTBS is not more prevalent..
For now, I have helped myself with the attached patch.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 16:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 12:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-12-24 15:53 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-12-24 15:53 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 11:53
Message generated for change (Comment added) made by wg1
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Pending
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-24 16:53

Message:
Oops, you are correct of course.  CONFIG_KVM set and all is well.
May I suggest the following patch so this doesn't bite people so easily.

--- configure.orig      2008-12-14 14:16:27.000000000 +0100
+++ configure   2008-12-24 16:46:03.000000000 +0100
@@ -134,6 +134,19 @@
     fi
 fi
 
+if [ -e "$kerneldir/.config" ]; then
+    if egrep -q "^CONFIG_KVM=(y|m)" "$kerneldir/.config"; then
+       :
+    else
+       echo "Warning: kernel not configured for KVM"
+       echo "kvm kernel modules may not build correctly"
+    fi
+else
+    echo "Error: kernel .config not found"
+    echo "Please make sure your kernel is configured"
+    exit 1
+fi
+
 #configure user dir
 (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir"
\
           --arch="$arch" --processor="$processor" \


----------------------------------------------------------------------

Comment By: Avi Kivity (avik)
Date: 2008-12-24 14:49

Message:
You should enable the host kernel's kvm modules even if you don't plan to
use them, so they will select functionality like mmu notifiers.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 19:11

Message:
Sorry, cannot seem to attach a file (I looked hard!), so here the patch
inline (applies to kvm-81, too):

--- kernel/include/linux/kvm_host.h.orig        2008-11-12
13:23:58.000000000 +0100
+++ kernel/include/linux/kvm_host.h     2008-11-15 21:08:02.000000000
+0100
@@ -46,6 +46,7 @@
  * the COPYING file in the top-level directory.
  */
 
+#include <linux/mmu_notifier.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/list.h>
--- kernel/include/linux/mmu_notifier.h.orig    2008-12-15
18:31:52.000000000 +0100
+++ kernel/include/linux/mmu_notifier.h 2008-11-15 21:19:08.000000000
+0100
@@ -0,0 +1,6 @@
+#ifndef _LINUX_MMU_NOTIFIER_H
+#define _LINUX_MMU_NOTIFIER_H
+
+struct mmu_notifier {};
+
+#endif


----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 19:00

Message:
I'm seeing this too, with kvm-79 and now kvm-81 on Linux-2.6.27.7 and
Linux-2.6.27.9.
I'm surprised that such a FTBS is not more prevalent..
For now, I have helped myself with the attached patch.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 16:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 12:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-12-24 16:27 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-12-24 16:27 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 11:53
Message generated for change (Comment added) made by avik
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Pending
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

>Comment By: Avi Kivity (avik)
Date: 2008-12-24 18:27

Message:
Well, very old kernels don't have kvm support at all, and this would break
them.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-24 17:53

Message:
Oops, you are correct of course.  CONFIG_KVM set and all is well.
May I suggest the following patch so this doesn't bite people so easily.

--- configure.orig      2008-12-14 14:16:27.000000000 +0100
+++ configure   2008-12-24 16:46:03.000000000 +0100
@@ -134,6 +134,19 @@
     fi
 fi
 
+if [ -e "$kerneldir/.config" ]; then
+    if egrep -q "^CONFIG_KVM=(y|m)" "$kerneldir/.config"; then
+       :
+    else
+       echo "Warning: kernel not configured for KVM"
+       echo "kvm kernel modules may not build correctly"
+    fi
+else
+    echo "Error: kernel .config not found"
+    echo "Please make sure your kernel is configured"
+    exit 1
+fi
+
 #configure user dir
 (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir"
\
           --arch="$arch" --processor="$processor" \


----------------------------------------------------------------------

Comment By: Avi Kivity (avik)
Date: 2008-12-24 15:49

Message:
You should enable the host kernel's kvm modules even if you don't plan to
use them, so they will select functionality like mmu notifiers.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 20:11

Message:
Sorry, cannot seem to attach a file (I looked hard!), so here the patch
inline (applies to kvm-81, too):

--- kernel/include/linux/kvm_host.h.orig        2008-11-12
13:23:58.000000000 +0100
+++ kernel/include/linux/kvm_host.h     2008-11-15 21:08:02.000000000
+0100
@@ -46,6 +46,7 @@
  * the COPYING file in the top-level directory.
  */
 
+#include <linux/mmu_notifier.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/list.h>
--- kernel/include/linux/mmu_notifier.h.orig    2008-12-15
18:31:52.000000000 +0100
+++ kernel/include/linux/mmu_notifier.h 2008-11-15 21:19:08.000000000
+0100
@@ -0,0 +1,6 @@
+#ifndef _LINUX_MMU_NOTIFIER_H
+#define _LINUX_MMU_NOTIFIER_H
+
+struct mmu_notifier {};
+
+#endif


----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 20:00

Message:
I'm seeing this too, with kvm-79 and now kvm-81 on Linux-2.6.27.7 and
Linux-2.6.27.9.
I'm surprised that such a FTBS is not more prevalent..
For now, I have helped myself with the attached patch.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 16:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 12:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2008-12-25 10:21 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2008-12-25 10:21 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 11:53
Message generated for change (Comment added) made by wg1
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Pending
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-25 11:21

Message:
It would only print a warning for those old kernels, not "break" them.


----------------------------------------------------------------------

Comment By: Avi Kivity (avik)
Date: 2008-12-24 17:27

Message:
Well, very old kernels don't have kvm support at all, and this would break
them.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-24 16:53

Message:
Oops, you are correct of course.  CONFIG_KVM set and all is well.
May I suggest the following patch so this doesn't bite people so easily.

--- configure.orig      2008-12-14 14:16:27.000000000 +0100
+++ configure   2008-12-24 16:46:03.000000000 +0100
@@ -134,6 +134,19 @@
     fi
 fi
 
+if [ -e "$kerneldir/.config" ]; then
+    if egrep -q "^CONFIG_KVM=(y|m)" "$kerneldir/.config"; then
+       :
+    else
+       echo "Warning: kernel not configured for KVM"
+       echo "kvm kernel modules may not build correctly"
+    fi
+else
+    echo "Error: kernel .config not found"
+    echo "Please make sure your kernel is configured"
+    exit 1
+fi
+
 #configure user dir
 (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir"
\
           --arch="$arch" --processor="$processor" \


----------------------------------------------------------------------

Comment By: Avi Kivity (avik)
Date: 2008-12-24 14:49

Message:
You should enable the host kernel's kvm modules even if you don't plan to
use them, so they will select functionality like mmu notifiers.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 19:11

Message:
Sorry, cannot seem to attach a file (I looked hard!), so here the patch
inline (applies to kvm-81, too):

--- kernel/include/linux/kvm_host.h.orig        2008-11-12
13:23:58.000000000 +0100
+++ kernel/include/linux/kvm_host.h     2008-11-15 21:08:02.000000000
+0100
@@ -46,6 +46,7 @@
  * the COPYING file in the top-level directory.
  */
 
+#include <linux/mmu_notifier.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/list.h>
--- kernel/include/linux/mmu_notifier.h.orig    2008-12-15
18:31:52.000000000 +0100
+++ kernel/include/linux/mmu_notifier.h 2008-11-15 21:19:08.000000000
+0100
@@ -0,0 +1,6 @@
+#ifndef _LINUX_MMU_NOTIFIER_H
+#define _LINUX_MMU_NOTIFIER_H
+
+struct mmu_notifier {};
+
+#endif


----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 19:00

Message:
I'm seeing this too, with kvm-79 and now kvm-81 on Linux-2.6.27.7 and
Linux-2.6.27.9.
I'm surprised that such a FTBS is not more prevalent..
For now, I have helped myself with the attached patch.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 16:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 12:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

* [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete
@ 2009-02-02  2:34 SourceForge.net
  0 siblings, 0 replies; 10+ messages in thread
From: SourceForge.net @ 2009-02-02  2:34 UTC (permalink / raw)
  To: noreply

Bugs item #2168011, was opened at 2008-10-15 09:53
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stephane Bakhos (nuitari3)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm_host.h:128: error: field 'mmu_notifier' has incomplete

Initial Comment:
When compiling kvm-77/76 on a 2.6.27 kernel with AMD IOMMU activated I get:

kvm_host.h:128: error: field 'mmu_notifier' has incomplete type

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 2009-02-02 02:34

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-25 10:21

Message:
It would only print a warning for those old kernels, not "break" them.


----------------------------------------------------------------------

Comment By: Avi Kivity (avik)
Date: 2008-12-24 16:27

Message:
Well, very old kernels don't have kvm support at all, and this would break
them.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-24 15:53

Message:
Oops, you are correct of course.  CONFIG_KVM set and all is well.
May I suggest the following patch so this doesn't bite people so easily.

--- configure.orig      2008-12-14 14:16:27.000000000 +0100
+++ configure   2008-12-24 16:46:03.000000000 +0100
@@ -134,6 +134,19 @@
     fi
 fi
 
+if [ -e "$kerneldir/.config" ]; then
+    if egrep -q "^CONFIG_KVM=(y|m)" "$kerneldir/.config"; then
+       :
+    else
+       echo "Warning: kernel not configured for KVM"
+       echo "kvm kernel modules may not build correctly"
+    fi
+else
+    echo "Error: kernel .config not found"
+    echo "Please make sure your kernel is configured"
+    exit 1
+fi
+
 #configure user dir
 (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir"
\
           --arch="$arch" --processor="$processor" \


----------------------------------------------------------------------

Comment By: Avi Kivity (avik)
Date: 2008-12-24 13:49

Message:
You should enable the host kernel's kvm modules even if you don't plan to
use them, so they will select functionality like mmu notifiers.

----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 18:11

Message:
Sorry, cannot seem to attach a file (I looked hard!), so here the patch
inline (applies to kvm-81, too):

--- kernel/include/linux/kvm_host.h.orig        2008-11-12
13:23:58.000000000 +0100
+++ kernel/include/linux/kvm_host.h     2008-11-15 21:08:02.000000000
+0100
@@ -46,6 +46,7 @@
  * the COPYING file in the top-level directory.
  */
 
+#include <linux/mmu_notifier.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/list.h>
--- kernel/include/linux/mmu_notifier.h.orig    2008-12-15
18:31:52.000000000 +0100
+++ kernel/include/linux/mmu_notifier.h 2008-11-15 21:19:08.000000000
+0100
@@ -0,0 +1,6 @@
+#ifndef _LINUX_MMU_NOTIFIER_H
+#define _LINUX_MMU_NOTIFIER_H
+
+struct mmu_notifier {};
+
+#endif


----------------------------------------------------------------------

Comment By: Wolfram Gloger (wg1)
Date: 2008-12-15 18:00

Message:
I'm seeing this too, with kvm-79 and now kvm-81 on Linux-2.6.27.7 and
Linux-2.6.27.9.
I'm surprised that such a FTBS is not more prevalent..
For now, I have helped myself with the attached patch.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 14:18

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

Comment By: Stephane Bakhos (nuitari3)
Date: 2008-10-15 10:11

Message:
It looks like I was wrong in saying that AMD IOMMU was the cause. When I
complied again I used make -j5 and it looks like it just skipped the kernel
modules.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2168011&group_id=180599

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

end of thread, other threads:[~2009-02-02  2:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02  2:34 [ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete SourceForge.net
  -- strict thread matches above, loose matches on Subject: below --
2008-12-25 10:21 SourceForge.net
2008-12-24 16:27 SourceForge.net
2008-12-24 15:53 SourceForge.net
2008-12-24 13:49 SourceForge.net
2008-12-15 18:11 SourceForge.net
2008-12-15 18:00 SourceForge.net
2008-10-15 14:18 SourceForge.net
2008-10-15 10:11 SourceForge.net
2008-10-15  9:53 SourceForge.net

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