lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CANRm+Cz5KbvYWHL1K=hW+dS4yD1MLVhbbN=42=kZGzXmm4FP=Q@mail.gmail.com>
Date:   Thu, 15 Mar 2018 09:48:34 +0800
From:   Wanpeng Li <kernellwp@...il.com>
To:     Paolo Bonzini <pbonzini@...hat.com>
Cc:     LKML <linux-kernel@...r.kernel.org>, kvm <kvm@...r.kernel.org>,
        Radim Krčmář <rkrcmar@...hat.com>,
        Jan H . Schönherr <jschoenh@...zon.de>
Subject: Re: [PATCH v2 0/3] Provides userspace with per-VM capability to
 improve latency

2018-03-15 0:11 GMT+08:00 Paolo Bonzini <pbonzini@...hat.com>:
> On 12/03/2018 12:53, Wanpeng Li wrote:
>> Provides userspace with per-VM capability(KVM_CAP_X86_DISABLE_EXITS) to
>> not intercept MWAIT/HLT/PAUSE in order that to improve latency in some
>> workloads.
>>
>> The patchset implements the original proposal from Radim.
>> https://www.spinics.net/lists/kvm/msg146879.html
>>
>> In addition, thanks to Jan H. Schönherr's attempt last year.
>>
>> v1 -> v2:
>>  * remove blinding setting KVM_ENABLE_CAP statement in doc
>>  * move PV_UNHALT associated statement to 2/3
>>  * rename kvm_mwait_can_in_guest to kvm_can_mwait_in_guest
>>  * remove unconditionally set INTERCEPT HLT in svm
>>  * call vmx_clear_hlt() from pre_enter_smm()
>>  * add a check to kvm_update_cpuid() that forbits KVM_FEATURE_PV_UNHALT
>>    when halt exits are disabld
>>
>> Cc: Paolo Bonzini <pbonzini@...hat.com>
>> Cc: Radim Krčmář <rkrcmar@...hat.com>
>> Cc: Jan H. Schönherr <jschoenh@...zon.de>
>>
>> Wanpeng Li (3):
>>   KVM: X86: Provides userspace with a capability to not intercept MWAIT
>>   KVM: X86: Provides userspace with a capability to not intercept HLT
>>   KVM: X86: Provides userspace with a capability to not intercept PAUSE
>>
>>  Documentation/virtual/kvm/api.txt | 24 ++++++++++++-------
>>  arch/x86/include/asm/kvm_host.h   |  4 ++++
>>  arch/x86/kvm/cpuid.c              |  5 ++++
>>  arch/x86/kvm/svm.c                |  9 ++++---
>>  arch/x86/kvm/vmx.c                | 50 ++++++++++++++++++++++++++++++++-------
>>  arch/x86/kvm/x86.c                | 29 +++++++++++++++++++----
>>  arch/x86/kvm/x86.h                | 24 +++++++++++++++----
>>  include/uapi/linux/kvm.h          |  2 +-
>>  tools/include/uapi/linux/kvm.h    |  2 +-
>>  9 files changed, 118 insertions(+), 31 deletions(-)
>>
>
> Queued, thanks.

Thanks Paolo. :)

>Do you have QEMU patches to automatically enable this
> together with HINTS_DEDICATED?

I will cook the patches. :)

Regards,
Wanpeng Li

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ