[ kvm-Bugs-2168011 ] kvm_host.h:128: error: field 'mmu_notifier' has incomplete

SourceForge.net
2008-12-15T18:11:58Z

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