]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: hide KVM_MEMSLOT_INVALID from userspace
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 21 Aug 2012 02:58:45 +0000 (10:58 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Aug 2012 12:08:51 +0000 (15:08 +0300)
commite153abdaaa80f671bace2f08c09afbe54bfb3f0b
tree4340306cbdfa28169737010531590735f63b6b4f
parent3b4d2e42f8a3daa4aa28f31c1bd1b72f89994c9f
KVM: hide KVM_MEMSLOT_INVALID from userspace

Quote Avi's comment:
| KVM_MEMSLOT_INVALID is actually an internal symbol, not used by
| userspace.  Please move it to kvm_host.h.

Also, we divide the memlsot->flags into two parts, the lower 16 bits
are visible for userspace, the higher 16 bits are internally used in
kvm

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm.h
include/linux/kvm_host.h