[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/8] i386: docs: Briefly describe KVM PV features
From: |
Vitaly Kuznetsov |
Subject: |
[PATCH v2 2/8] i386: docs: Briefly describe KVM PV features |
Date: |
Thu, 2 Sep 2021 11:35:24 +0200 |
KVM PV features don't seem to be documented anywhere, in particular, the
fact that some of the features are enabled by default and some are not can
only be figured out from the code.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
docs/kvm-pv.txt | 92 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
create mode 100644 docs/kvm-pv.txt
diff --git a/docs/kvm-pv.txt b/docs/kvm-pv.txt
new file mode 100644
index 000000000000..84ad7fa60f8d
--- /dev/null
+++ b/docs/kvm-pv.txt
@@ -0,0 +1,92 @@
+KVM paravirtualized features
+============================
+
+
+1. Description
+===============
+In some cases when implementing a hardware interface in software is slow, KVM
+implements its own paravirtualized interfaces.
+
+2. Setup
+=========
+KVM PV features are represented as CPU flags. The following features are
enabled
+by default for any CPU model when KVM is enabled:
+ kvmclock
+ kvm-nopiodelay
+ kvm-asyncpf
+ kvm-steal-time
+ kvm-pv-eoi
+ kvmclock-stable-bit
+
+'kvm-msi-ext-dest-id' feature is enabled by default in x2apic mode with split
+irqchip (e.g. "-machine ...,kernel-irqchip=split -cpu ...,x2apic").
+
+Note: when cpu model 'host' is used, QEMU passes through all KVM PV features
+exposed by KVM to the guest.
+
+3. Existing features
+====================
+
+3.1. kvmclock
+================
+This feature exposes KVM specific PV clocksource to the guest.
+
+3.2. kvm-nopiodelay
+===================
+The guest doesn't need to perform delays on PIO operations.
+
+3.3. kvm-mmu
+============
+This feature is deprecated.
+
+3.4. kvm-asyncpf
+================
+Enables asynchronous page fault mechanism. Note: since Linux-5.10 the feature
is
+deprecated and not enabled by KVM. Use "kvm-asyncpf-int" instead.
+
+3.5. kvm-steal-time
+===================
+Enables stolen (when guest vCPU is not running) time accounting.
+
+3.6. kvm-pv-eoi
+===============
+Enables paravirtualized end-of-interrupt signaling.
+
+3.7. kvm-pv-unhalt
+==================
+Enables paravirtualized spinlocks support.
+
+3.8. kvm-pv-tlb-flush
+=====================
+Enables paravirtualized TLB flush mechanism.
+
+3.9. kvm-pv-ipi
+===============
+Enables paravirtualized IPI mechanism.
+
+3.10. kvm-poll-control
+======================
+Enables host-side polling on HLT control from the guest.
+
+3.11. kvm-pv-sched-yield
+========================
+Enables paravirtualized sched yield feature.
+
+3.12. kvm-asyncpf-int
+=====================
+Enables interrupt based asynchronous page fault mechanism.
+
+3.13. kvm-msi-ext-dest-id
+=========================
+Support 'Extended Destination ID' for external interrupts. The feature allows
+to use up to 32768 CPUs without IRQ remapping (but other limits may apply
making
+the number of supported vCPUs for a given configuration lower).
+
+3.14. kvmclock-stable-bit
+=========================
+Tells the guest that guest visible TSC value can be fully trusted for kvmclock
+computations and no warps are expected.
+
+4. Useful links
+================
+Please refer to Documentation/virt/kvm in Linux for additional detail.
--
2.31.1
- [PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements, Vitaly Kuznetsov, 2021/09/02
- [PATCH v2 2/8] i386: docs: Briefly describe KVM PV features,
Vitaly Kuznetsov <=
- [PATCH v2 6/8] i386: Implement pseudo 'hv-avic' ('hv-apicv') enlightenment, Vitaly Kuznetsov, 2021/09/02
- [PATCH v2 1/8] i386: Add 6.2 machine types, Vitaly Kuznetsov, 2021/09/02
- [PATCH v2 7/8] i386: Make Hyper-V version id configurable, Vitaly Kuznetsov, 2021/09/02
- [PATCH v2 8/8] i386: Change the default Hyper-V version to match WS2016, Vitaly Kuznetsov, 2021/09/02
- [PATCH v2 5/8] i386: Move HV_APIC_ACCESS_RECOMMENDED bit setting to hyperv_fill_cpuids(), Vitaly Kuznetsov, 2021/09/02
- [PATCH v2 4/8] i386: Support KVM_CAP_HYPERV_ENFORCE_CPUID, Vitaly Kuznetsov, 2021/09/02
- [PATCH v2 3/8] i386: Support KVM_CAP_ENFORCE_PV_FEATURE_CPUID, Vitaly Kuznetsov, 2021/09/02
- Re: [PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements, Vitaly Kuznetsov, 2021/09/17
- Re: [PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements, Paolo Bonzini, 2021/09/29