]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Make set_msr_interception more reliable
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Jul 2007 10:42:42 +0000 (20:42 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:22 +0000 (10:18 +0200)
commit68a24dae71040e67d5e9c01b61a87a7518e6ffe5
tree74b14d353f1bf2a5420a07dc8a9f7ce1e7b74a7d
parent8941a3307fa8319073ca4165a2bd4bd6e256654c
KVM: SVM: Make set_msr_interception more reliable

set_msr_interception() is used by svm to set up which MSRs should be
intercepted.  It can only fail if someone has changed the code to try
to intercept an MSR without updating the array of ranges.

The return value is ignored anyway: it should just BUG() if it doesn't
work.  (A build-time failure would be better, but that's tricky).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c