lkml.org 
[lkml]   [2023]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC kvmtool 05/31] arm64: Check pvtime support against the KVM instance
    Date
    KVM_CAP_STEAL_TIME can be checked against a VM instance.
    To allow controlling the feature depending on the VM type,
    use the cap against the VM.

    Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
    ---
    arm/aarch64/pvtime.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/arm/aarch64/pvtime.c b/arm/aarch64/pvtime.c
    index 2933ac7c..839aa8a7 100644
    --- a/arm/aarch64/pvtime.c
    +++ b/arm/aarch64/pvtime.c
    @@ -58,8 +58,8 @@ int kvm_cpu__setup_pvtime(struct kvm_cpu *vcpu)
    if (kvm_cfg->no_pvtime)
    return 0;

    - has_stolen_time = kvm__supports_extension(vcpu->kvm,
    - KVM_CAP_STEAL_TIME);
    + has_stolen_time = kvm__supports_vm_extension(vcpu->kvm,
    + KVM_CAP_STEAL_TIME);
    if (!has_stolen_time) {
    kvm_cfg->no_pvtime = true;
    return 0;
    --
    2.34.1
    \
     
     \ /
      Last update: 2023-03-26 23:58    [W:4.107 / U:0.108 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site