aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-11-21 09:41:05 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:13 -0500
commit6d4e4c4fca5be806b888d606894d914847e82d78 (patch)
treedc383e27d812f617d791f48ba1527d70c86b65ba /drivers/kvm/kvm.h
parent76c35c6e99cb46b936b88cc795c9c886e7fe7bd4 (diff)
KVM: Disallow fork() and similar games when using a VM
We don't want the meaning of guest userspace changing under our feet. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 1fd8158ced89..be18620bd656 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -305,6 +305,7 @@ struct kvm_vm_stat {
305 305
306struct kvm { 306struct kvm {
307 struct mutex lock; /* protects everything except vcpus */ 307 struct mutex lock; /* protects everything except vcpus */
308 struct mm_struct *mm; /* userspace tied to this vm */
308 int naliases; 309 int naliases;
309 struct kvm_mem_alias aliases[KVM_ALIAS_SLOTS]; 310 struct kvm_mem_alias aliases[KVM_ALIAS_SLOTS];
310 int nmemslots; 311 int nmemslots;