summaryrefslogtreecommitdiffstats
path: root/linux-headers/linux/vfio.h
diff options
context:
space:
mode:
authorJanosch Frank2016-01-11 16:17:39 +0100
committerPaolo Bonzini2016-01-26 15:58:12 +0100
commit639ce1831082084af80290c79f06a5794a3caa0b (patch)
tree90a3fc0b7ceef1132ee743e987b8b78314eb1ab6 /linux-headers/linux/vfio.h
parentscripts/kvm/kvm_stat: Improve debugfs access checking (diff)
downloadqemu-639ce1831082084af80290c79f06a5794a3caa0b.tar.gz
qemu-639ce1831082084af80290c79f06a5794a3caa0b.tar.xz
qemu-639ce1831082084af80290c79f06a5794a3caa0b.zip
scripts/kvm/kvm_stat: Introduce main function
The main function should be the main location for initialization and helps encapsulating variables into a scope. This way they don't have to be global and might be mistaken for local ones. As the providers variable is scoped now it can't be accessed from within the Stats class. Hence, the global access to the variable was changed to a local one. Reviewed-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Message-Id: <1452525484-32309-10-git-send-email-frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-headers/linux/vfio.h')
0 files changed, 0 insertions, 0 deletions