diff options
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index b48f92786ab3..a7cb93cb2154 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -1789,6 +1789,69 @@ struct kvm_msi { | |||
1789 | No flags are defined so far. The corresponding field must be 0. | 1789 | No flags are defined so far. The corresponding field must be 0. |
1790 | 1790 | ||
1791 | 1791 | ||
1792 | 4.71 KVM_CREATE_PIT2 | ||
1793 | |||
1794 | Capability: KVM_CAP_PIT2 | ||
1795 | Architectures: x86 | ||
1796 | Type: vm ioctl | ||
1797 | Parameters: struct kvm_pit_config (in) | ||
1798 | Returns: 0 on success, -1 on error | ||
1799 | |||
1800 | Creates an in-kernel device model for the i8254 PIT. This call is only valid | ||
1801 | after enabling in-kernel irqchip support via KVM_CREATE_IRQCHIP. The following | ||
1802 | parameters have to be passed: | ||
1803 | |||
1804 | struct kvm_pit_config { | ||
1805 | __u32 flags; | ||
1806 | __u32 pad[15]; | ||
1807 | }; | ||
1808 | |||
1809 | Valid flags are: | ||
1810 | |||
1811 | #define KVM_PIT_SPEAKER_DUMMY 1 /* emulate speaker port stub */ | ||
1812 | |||
1813 | This IOCTL replaces the obsolete KVM_CREATE_PIT. | ||
1814 | |||
1815 | |||
1816 | 4.72 KVM_GET_PIT2 | ||
1817 | |||
1818 | Capability: KVM_CAP_PIT_STATE2 | ||
1819 | Architectures: x86 | ||
1820 | Type: vm ioctl | ||
1821 | Parameters: struct kvm_pit_state2 (out) | ||
1822 | Returns: 0 on success, -1 on error | ||
1823 | |||
1824 | Retrieves the state of the in-kernel PIT model. Only valid after | ||
1825 | KVM_CREATE_PIT2. The state is returned in the following structure: | ||
1826 | |||
1827 | struct kvm_pit_state2 { | ||
1828 | struct kvm_pit_channel_state channels[3]; | ||
1829 | __u32 flags; | ||
1830 | __u32 reserved[9]; | ||
1831 | }; | ||
1832 | |||
1833 | Valid flags are: | ||
1834 | |||
1835 | /* disable PIT in HPET legacy mode */ | ||
1836 | #define KVM_PIT_FLAGS_HPET_LEGACY 0x00000001 | ||
1837 | |||
1838 | This IOCTL replaces the obsolete KVM_GET_PIT. | ||
1839 | |||
1840 | |||
1841 | 4.73 KVM_SET_PIT2 | ||
1842 | |||
1843 | Capability: KVM_CAP_PIT_STATE2 | ||
1844 | Architectures: x86 | ||
1845 | Type: vm ioctl | ||
1846 | Parameters: struct kvm_pit_state2 (in) | ||
1847 | Returns: 0 on success, -1 on error | ||
1848 | |||
1849 | Sets the state of the in-kernel PIT model. Only valid after KVM_CREATE_PIT2. | ||
1850 | See KVM_GET_PIT2 for details on struct kvm_pit_state2. | ||
1851 | |||
1852 | This IOCTL replaces the obsolete KVM_SET_PIT. | ||
1853 | |||
1854 | |||
1792 | 5. The kvm_run structure | 1855 | 5. The kvm_run structure |
1793 | ------------------------ | 1856 | ------------------------ |
1794 | 1857 | ||