diff options
author | Avi Kivity <avi@qumranet.com> | 2007-11-21 16:41:05 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:53:13 +0200 |
commit | 6d4e4c4fca5be806b888d606894d914847e82d78 (patch) | |
tree | dc383e27d812f617d791f48ba1527d70c86b65ba /drivers/kvm/kvm.h | |
parent | 76c35c6e99cb46b936b88cc795c9c886e7fe7bd4 (diff) | |
download | linux-6d4e4c4fca5be806b888d606894d914847e82d78.tar.gz linux-6d4e4c4fca5be806b888d606894d914847e82d78.tar.bz2 linux-6d4e4c4fca5be806b888d606894d914847e82d78.zip |
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.h | 1 |
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 { struct kvm { struct mutex lock; /* protects everything except vcpus */ + struct mm_struct *mm; /* userspace tied to this vm */ int naliases; struct kvm_mem_alias aliases[KVM_ALIAS_SLOTS]; int nmemslots; |