Commit 0326cc6
committed
KVM: selftests: Query module param to detect FEP in MSR filtering test
Add a helper to detect KVM support for forced emulation by querying the
module param, and use the helper to detect support for the MSR filtering
test instead of throwing a noodle/NOP at KVM to see if it sticks.
Cc: Aaron Lewis <aaronlewis@google.com>
Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240109230250.424295-25-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 45e4755 commit 0326cc6
2 files changed
Lines changed: 14 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1225 | 1230 | | |
1226 | 1231 | | |
1227 | 1232 | | |
| |||
Lines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | 262 | | |
271 | 263 | | |
272 | 264 | | |
| |||
388 | 380 | | |
389 | 381 | | |
390 | 382 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 383 | | |
398 | 384 | | |
399 | 385 | | |
| |||
531 | 517 | | |
532 | 518 | | |
533 | 519 | | |
| 520 | + | |
534 | 521 | | |
535 | 522 | | |
536 | 523 | | |
| 524 | + | |
537 | 525 | | |
538 | 526 | | |
539 | 527 | | |
| |||
561 | 549 | | |
562 | 550 | | |
563 | 551 | | |
564 | | - | |
565 | 552 | | |
566 | | - | |
| 553 | + | |
567 | 554 | | |
568 | | - | |
| 555 | + | |
| 556 | + | |
569 | 557 | | |
570 | 558 | | |
571 | 559 | | |
| |||
583 | 571 | | |
584 | 572 | | |
585 | 573 | | |
| 574 | + | |
586 | 575 | | |
587 | 576 | | |
588 | 577 | | |
| |||
804 | 793 | | |
805 | 794 | | |
806 | 795 | | |
| 796 | + | |
| 797 | + | |
807 | 798 | | |
808 | 799 | | |
809 | 800 | | |
| |||
0 commit comments