summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-10-11 19:39:54 +0000
committerneel <neel@FreeBSD.org>2012-10-11 19:39:54 +0000
commit97c20149fa1e35f2bcc34d8b7058467aa8d51d80 (patch)
tree4ae370741fb886eb6a757d120ba3ee049a80c41f /sys/amd64/include
parentd09cf38e2541aaf20c762b633d757f620e4ae745 (diff)
downloadFreeBSD-src-97c20149fa1e35f2bcc34d8b7058467aa8d51d80.zip
FreeBSD-src-97c20149fa1e35f2bcc34d8b7058467aa8d51d80.tar.gz
Fix warnings generated by 'debug.witness.watch' during VM creation and
destruction for calling malloc() with M_WAITOK while holding a mutex. Do not allow vmm.ko to be unloaded until all virtual machines are destroyed.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/vmm_dev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/vmm_dev.h b/sys/amd64/include/vmm_dev.h
index 42ad236..79f893d 100644
--- a/sys/amd64/include/vmm_dev.h
+++ b/sys/amd64/include/vmm_dev.h
@@ -31,7 +31,7 @@
#ifdef _KERNEL
void vmmdev_init(void);
-void vmmdev_cleanup(void);
+int vmmdev_cleanup(void);
#endif
struct vm_memory_segment {
OpenPOWER on IntegriCloud