aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/virtual/kvm/api.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 42542eb802c..67cc0f5b997 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -1291,6 +1291,38 @@ Returns the tsc frequency of the guest. The unit of the return value is
1291KHz. If the host has unstable tsc this ioctl returns -EIO instead as an 1291KHz. If the host has unstable tsc this ioctl returns -EIO instead as an
1292error. 1292error.
1293 1293
12944.56 KVM_GET_LAPIC
1295
1296Capability: KVM_CAP_IRQCHIP
1297Architectures: x86
1298Type: vcpu ioctl
1299Parameters: struct kvm_lapic_state (out)
1300Returns: 0 on success, -1 on error
1301
1302#define KVM_APIC_REG_SIZE 0x400
1303struct kvm_lapic_state {
1304 char regs[KVM_APIC_REG_SIZE];
1305};
1306
1307Reads the Local APIC registers and copies them into the input argument. The
1308data format and layout are the same as documented in the architecture manual.
1309
13104.57 KVM_SET_LAPIC
1311
1312Capability: KVM_CAP_IRQCHIP
1313Architectures: x86
1314Type: vcpu ioctl
1315Parameters: struct kvm_lapic_state (in)
1316Returns: 0 on success, -1 on error
1317
1318#define KVM_APIC_REG_SIZE 0x400
1319struct kvm_lapic_state {
1320 char regs[KVM_APIC_REG_SIZE];
1321};
1322
1323Copies the input argument into the the Local APIC registers. The data format
1324and layout are the same as documented in the architecture manual.
1325
12945. The kvm_run structure 13265. The kvm_run structure
1295 1327
1296Application code obtains a pointer to the kvm_run structure by 1328Application code obtains a pointer to the kvm_run structure by