[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] kvm: consistently return 0/-errno from kvm_convert_memory
From: |
Zhao Liu |
Subject: |
Re: [PATCH] kvm: consistently return 0/-errno from kvm_convert_memory |
Date: |
Fri, 13 Dec 2024 10:35:29 +0800 |
On Thu, Dec 12, 2024 at 04:57:19PM +0100, Paolo Bonzini wrote:
> Date: Thu, 12 Dec 2024 16:57:19 +0100
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH] kvm: consistently return 0/-errno from kvm_convert_memory
> X-Mailer: git-send-email 2.47.1
>
> In case of incorrect parameters, kvm_convert_memory() was returning
> -1 instead of -EINVAL. The guest won't notice because it will move
> anyway to RUN_STATE_INTERNAL_ERROR, but fix this for consistency and
> clarity.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> accel/kvm/kvm-all.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>