qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] vfio/migration: Add helper function to set state or reset de


From: Cédric Le Goater
Subject: Re: [PATCH] vfio/migration: Add helper function to set state or reset device
Date: Tue, 2 Jan 2024 11:22:51 +0100
User-agent: Mozilla Thunderbird

On 12/31/23 11:48, Avihai Horon wrote:
There are several places where failure in setting the device state leads
to a device reset, which is done by setting ERROR as the recover state.

Add a helper function that sets the device state and resets the device
in case of failure. This will make the code cleaner and remove duplicate
comments.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>


Applied to vfio-next.

Thanks,

C.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]