Commit 8b47442
committed
KVM: x86: use kvm_complete_insn_gp in emulating RDMSR/WRMSR
Simplify the four functions that handle {kernel,user} {rd,wr}msr, there
is still some repetition between the two instances of rdmsr but the
whole business of calling kvm_inject_gp and kvm_skip_emulated_instruction
can be unified nicely.
Because complete_emulated_wrmsr now becomes essentially a call to
kvm_complete_insn_gp, remove complete_emulated_msr.
Reviewed-by: Tom Lendacky <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent 9caec4b commit 8b47442
1 file changed
+16
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
1637 | | - | |
| 1637 | + | |
1638 | 1638 | | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
| 1639 | + | |
| 1640 | + | |
1643 | 1641 | | |
1644 | 1642 | | |
1645 | 1643 | | |
1646 | 1644 | | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
| 1645 | + | |
1653 | 1646 | | |
1654 | 1647 | | |
1655 | 1648 | | |
1656 | 1649 | | |
1657 | | - | |
| 1650 | + | |
1658 | 1651 | | |
1659 | 1652 | | |
1660 | 1653 | | |
| |||
1717 | 1710 | | |
1718 | 1711 | | |
1719 | 1712 | | |
1720 | | - | |
1721 | | - | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1722 | 1719 | | |
1723 | | - | |
1724 | | - | |
1725 | 1720 | | |
1726 | 1721 | | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
| 1722 | + | |
1732 | 1723 | | |
1733 | 1724 | | |
1734 | 1725 | | |
| |||
1749 | 1740 | | |
1750 | 1741 | | |
1751 | 1742 | | |
1752 | | - | |
1753 | | - | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1754 | 1746 | | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
1758 | 1747 | | |
1759 | | - | |
1760 | | - | |
| 1748 | + | |
1761 | 1749 | | |
1762 | 1750 | | |
1763 | 1751 | | |
| |||
0 commit comments