[PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements

Vitaly Kuznetsov posted 8 patches 2 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210902093530.345756-1-vkuznets@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Marcelo Tosatti <mtosatti@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Eduardo Habkost <ehabkost@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>
docs/hyperv.txt                |  41 +++++++++++--
docs/kvm-pv.txt                | 103 +++++++++++++++++++++++++++++++++
hw/core/machine.c              |   3 +
hw/i386/pc.c                   |   7 +++
hw/i386/pc_piix.c              |  14 ++++-
hw/i386/pc_q35.c               |  13 ++++-
include/hw/boards.h            |   3 +
include/hw/i386/pc.h           |   3 +
target/i386/cpu.c              |  22 +++++--
target/i386/cpu.h              |  12 +++-
target/i386/kvm/hyperv-proto.h |   1 +
target/i386/kvm/kvm.c          |  62 +++++++++++++++-----
12 files changed, 260 insertions(+), 24 deletions(-)
create mode 100644 docs/kvm-pv.txt
[PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements
Posted by Vitaly Kuznetsov 2 years, 6 months ago
This is a continuation of "[PATCH 0/3] i386/kvm: Paravirtualized features usage 
enforcement" series, thus v2.

This series implements several unrelated features but as there are code
dependencies between them I'm sending it as one series.

PATCH1 adds empty 6.2 machine types and the required compat infrastructure
(to be used by PATCH8)
PATCH2 adds documentation for KVM PV features
PATCH3 adds support for KVM_CAP_ENFORCE_PV_FEATURE_CPUID
PATCH4 adds support for KVM_CAP_HYPERV_ENFORCE_CPUID
PATCHes5-6 add 'hv-avic' feature
PATCH7 makes Hyper-V version info settable
PATCH8 changes the default Hyper-V version to 2016

Vitaly Kuznetsov (8):
  i386: Add 6.2 machine types
  i386: docs: Briefly describe KVM PV features
  i386: Support KVM_CAP_ENFORCE_PV_FEATURE_CPUID
  i386: Support KVM_CAP_HYPERV_ENFORCE_CPUID
  i386: Move HV_APIC_ACCESS_RECOMMENDED bit setting to
    hyperv_fill_cpuids()
  i386: Implement pseudo 'hv-avic' ('hv-apicv') enlightenment
  i386: Make Hyper-V version id configurable
  i386: Change the default Hyper-V version to match WS2016

 docs/hyperv.txt                |  41 +++++++++++--
 docs/kvm-pv.txt                | 103 +++++++++++++++++++++++++++++++++
 hw/core/machine.c              |   3 +
 hw/i386/pc.c                   |   7 +++
 hw/i386/pc_piix.c              |  14 ++++-
 hw/i386/pc_q35.c               |  13 ++++-
 include/hw/boards.h            |   3 +
 include/hw/i386/pc.h           |   3 +
 target/i386/cpu.c              |  22 +++++--
 target/i386/cpu.h              |  12 +++-
 target/i386/kvm/hyperv-proto.h |   1 +
 target/i386/kvm/kvm.c          |  62 +++++++++++++++-----
 12 files changed, 260 insertions(+), 24 deletions(-)
 create mode 100644 docs/kvm-pv.txt

-- 
2.31.1


Re: [PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements
Posted by Vitaly Kuznetsov 2 years, 6 months ago
Vitaly Kuznetsov <vkuznets@redhat.com> writes:

> This is a continuation of "[PATCH 0/3] i386/kvm: Paravirtualized features usage 
> enforcement" series, thus v2.
>
> This series implements several unrelated features but as there are code
> dependencies between them I'm sending it as one series.
>
> PATCH1 adds empty 6.2 machine types and the required compat infrastructure
> (to be used by PATCH8)
> PATCH2 adds documentation for KVM PV features
> PATCH3 adds support for KVM_CAP_ENFORCE_PV_FEATURE_CPUID
> PATCH4 adds support for KVM_CAP_HYPERV_ENFORCE_CPUID
> PATCHes5-6 add 'hv-avic' feature
> PATCH7 makes Hyper-V version info settable
> PATCH8 changes the default Hyper-V version to 2016

Eduardo, Paolo, all,

any comments? It seems patches can still be applied to 'master' with no
issues.

-- 
Vitaly


Re: [PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements
Posted by Paolo Bonzini 2 years, 6 months ago
On 02/09/21 11:35, Vitaly Kuznetsov wrote:
> This is a continuation of "[PATCH 0/3] i386/kvm: Paravirtualized features usage
> enforcement" series, thus v2.
> 
> This series implements several unrelated features but as there are code
> dependencies between them I'm sending it as one series.
> 
> PATCH1 adds empty 6.2 machine types and the required compat infrastructure
> (to be used by PATCH8)
> PATCH2 adds documentation for KVM PV features
> PATCH3 adds support for KVM_CAP_ENFORCE_PV_FEATURE_CPUID
> PATCH4 adds support for KVM_CAP_HYPERV_ENFORCE_CPUID
> PATCHes5-6 add 'hv-avic' feature
> PATCH7 makes Hyper-V version info settable
> PATCH8 changes the default Hyper-V version to 2016
> 
> Vitaly Kuznetsov (8):
>    i386: Add 6.2 machine types
>    i386: docs: Briefly describe KVM PV features
>    i386: Support KVM_CAP_ENFORCE_PV_FEATURE_CPUID
>    i386: Support KVM_CAP_HYPERV_ENFORCE_CPUID
>    i386: Move HV_APIC_ACCESS_RECOMMENDED bit setting to
>      hyperv_fill_cpuids()
>    i386: Implement pseudo 'hv-avic' ('hv-apicv') enlightenment
>    i386: Make Hyper-V version id configurable
>    i386: Change the default Hyper-V version to match WS2016
> 
>   docs/hyperv.txt                |  41 +++++++++++--
>   docs/kvm-pv.txt                | 103 +++++++++++++++++++++++++++++++++
>   hw/core/machine.c              |   3 +
>   hw/i386/pc.c                   |   7 +++
>   hw/i386/pc_piix.c              |  14 ++++-
>   hw/i386/pc_q35.c               |  13 ++++-
>   include/hw/boards.h            |   3 +
>   include/hw/i386/pc.h           |   3 +
>   target/i386/cpu.c              |  22 +++++--
>   target/i386/cpu.h              |  12 +++-
>   target/i386/kvm/hyperv-proto.h |   1 +
>   target/i386/kvm/kvm.c          |  62 +++++++++++++++-----
>   12 files changed, 260 insertions(+), 24 deletions(-)
>   create mode 100644 docs/kvm-pv.txt
> 

Queued patches 3-8, thanks.

Paolo


Re: [PATCH v2 0/8] i386: Assorted KVM PV and Hyper-V feature improvements
Posted by Vitaly Kuznetsov 2 years, 6 months ago
Paolo Bonzini <pbonzini@redhat.com> writes:

> On 02/09/21 11:35, Vitaly Kuznetsov wrote:
>> This is a continuation of "[PATCH 0/3] i386/kvm: Paravirtualized features usage
>> enforcement" series, thus v2.
>> 
>> This series implements several unrelated features but as there are code
>> dependencies between them I'm sending it as one series.
>> 
>> PATCH1 adds empty 6.2 machine types and the required compat infrastructure
>> (to be used by PATCH8)
>> PATCH2 adds documentation for KVM PV features
>> PATCH3 adds support for KVM_CAP_ENFORCE_PV_FEATURE_CPUID
>> PATCH4 adds support for KVM_CAP_HYPERV_ENFORCE_CPUID
>> PATCHes5-6 add 'hv-avic' feature
>> PATCH7 makes Hyper-V version info settable
>> PATCH8 changes the default Hyper-V version to 2016
>> 
>> Vitaly Kuznetsov (8):
>>    i386: Add 6.2 machine types
>>    i386: docs: Briefly describe KVM PV features
>>    i386: Support KVM_CAP_ENFORCE_PV_FEATURE_CPUID
>>    i386: Support KVM_CAP_HYPERV_ENFORCE_CPUID
>>    i386: Move HV_APIC_ACCESS_RECOMMENDED bit setting to
>>      hyperv_fill_cpuids()
>>    i386: Implement pseudo 'hv-avic' ('hv-apicv') enlightenment
>>    i386: Make Hyper-V version id configurable
>>    i386: Change the default Hyper-V version to match WS2016
>> 
>>   docs/hyperv.txt                |  41 +++++++++++--
>>   docs/kvm-pv.txt                | 103 +++++++++++++++++++++++++++++++++
>>   hw/core/machine.c              |   3 +
>>   hw/i386/pc.c                   |   7 +++
>>   hw/i386/pc_piix.c              |  14 ++++-
>>   hw/i386/pc_q35.c               |  13 ++++-
>>   include/hw/boards.h            |   3 +
>>   include/hw/i386/pc.h           |   3 +
>>   target/i386/cpu.c              |  22 +++++--
>>   target/i386/cpu.h              |  12 +++-
>>   target/i386/kvm/hyperv-proto.h |   1 +
>>   target/i386/kvm/kvm.c          |  62 +++++++++++++++-----
>>   12 files changed, 260 insertions(+), 24 deletions(-)
>>   create mode 100644 docs/kvm-pv.txt
>> 
>
> Queued patches 3-8, thanks.

Patch3 with the hunk to docs/kvm-pv.txt dropped I suppose (as PATCH2
introducing the file is not queued)? I can include it in the next
submission then.

Thanks!

-- 
Vitaly