commit | bfc733a7a32612fe213a7492c385f2b03f592d7f | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Tue Jul 31 20:42:42 2007 +1000 |
committer | Avi Kivity <avi@qumranet.com> | Sat Oct 13 10:18:22 2007 +0200 |
tree | 74b14d353f1bf2a5420a07dc8a9f7ce1e7b74a7d | |
parent | 7e9d619d2aa28b71d547edfa15c66d6ab9a3a39c [diff] |
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>