Commit 7075f16
committed
KVM: x86: Refactor kvm_get_feature_msr() to avoid struct kvm_msr_entry
Refactor kvm_get_feature_msr() to take the components of kvm_msr_entry as
separate parameters, along with a vCPU pointer, i.e. to give it the same
prototype as kvm_{g,s}et_msr_ignored_check(). This will allow using a
common inner helper for handling accesses to "regular" and feature MSRs.
No functional change intended.
Link: https://lore.kernel.org/r/20240802181935.292540-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent b848f24 commit 7075f16
1 file changed
Lines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
1662 | | - | |
| 1662 | + | |
| 1663 | + | |
1663 | 1664 | | |
1664 | | - | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1665 | 1668 | | |
1666 | | - | |
| 1669 | + | |
1667 | 1670 | | |
1668 | 1671 | | |
1669 | | - | |
| 1672 | + | |
1670 | 1673 | | |
1671 | 1674 | | |
1672 | | - | |
| 1675 | + | |
1673 | 1676 | | |
1674 | 1677 | | |
1675 | | - | |
| 1678 | + | |
1676 | 1679 | | |
1677 | 1680 | | |
1678 | 1681 | | |
1679 | 1682 | | |
1680 | 1683 | | |
1681 | 1684 | | |
1682 | | - | |
1683 | 1685 | | |
1684 | 1686 | | |
1685 | 1687 | | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
| 1688 | + | |
| 1689 | + | |
1689 | 1690 | | |
1690 | 1691 | | |
1691 | 1692 | | |
1692 | 1693 | | |
1693 | | - | |
1694 | | - | |
1695 | 1694 | | |
1696 | 1695 | | |
1697 | 1696 | | |
| |||
7378 | 7377 | | |
7379 | 7378 | | |
7380 | 7379 | | |
7381 | | - | |
7382 | | - | |
7383 | | - | |
| 7380 | + | |
7384 | 7381 | | |
7385 | | - | |
| 7382 | + | |
7386 | 7383 | | |
7387 | 7384 | | |
7388 | 7385 | | |
| |||
0 commit comments