KVM: rename hardware_[dis|en]able() to *_nolock() and add locking wrappers
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Tue, 16 Nov 2010 08:37:41 +0000 (17:37 +0900)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:29 +0000 (11:29 +0200)
commit75b7127c3858261fc080dd52a022424a7e7f6ae5
tree7a59ff08f2128ebe039334ca385c21e451a6f16e
parent97e91e28fa8fcbac30beab3de72060ada27d5671
KVM: rename hardware_[dis|en]able() to *_nolock() and add locking wrappers

The naming convension of hardware_[dis|en]able family is little bit confusing
because only hardware_[dis|en]able_all are using _nolock suffix.

Renaming current hardware_[dis|en]able() to *_nolock() and using
hardware_[dis|en]able() as wrapper functions which take kvm_lock for them
reduces extra confusion.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/kvm_main.c