qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH for-4.0 v9 09/16] qemu_thread: supplement error


From: Fei Li
Subject: Re: [Qemu-devel] [PATCH for-4.0 v9 09/16] qemu_thread: supplement error handling for pci_edu_realize
Date: Fri, 11 Jan 2019 21:19:35 +0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.4.0


在 2019/1/11 上午10:49, Peter Xu 写道:
On Thu, Jan 10, 2019 at 09:29:38PM +0800, Fei Li wrote:
在 2019/1/8 下午4:43, Markus Armbruster 写道:
Peter Xu <address@hidden> writes:

On Tue, Jan 08, 2019 at 07:14:11AM +0100, Jiri Slaby wrote:
On 07. 01. 19, 18:29, Markus Armbruster wrote:
     static void pci_edu_uninit(PCIDevice *pdev)
     {
         EduState *edu = EDU(pdev);

         qemu_mutex_lock(&edu->thr_mutex);
         edu->stopping = true;
         qemu_mutex_unlock(&edu->thr_mutex);
         qemu_cond_signal(&edu->thr_cond);
         qemu_thread_join(&edu->thread);

         qemu_cond_destroy(&edu->thr_cond);
         qemu_mutex_destroy(&edu->thr_mutex);

         timer_del(&edu->dma_timer);
     }

Preexisting: pci_edu_uninit() neglects to call msi_uninit().  Jiri?\
I don't know, the MSI support was added in:
commit eabb5782f70b4a10975b24ccd7129929a05ac932
Author: Peter Xu <address@hidden>
Date:   Wed Sep 28 21:03:39 2016 +0800

      hw/misc/edu: support MSI interrupt

Hence CCing Peter.
Hi, Jiri, Markus, Fei,

IMHO msi_uninit() is optional since it only operates on the config
space of the device to remove the capability or fix up the flags
without really doing any real destruction of objects so nothing will
be leaked (unlike msix_uninit, which should be required).
Michael, Marcel, is neglecting to call msi_uninit() okay, a harmless
bug, or a harmful bug?
Kindly ping. :)

If corresponding change is needed, I'd like to do the update in the next
version.
Fei,

If you're going to post the edu patch, please post it as a standalone
patch.  More patches mean harder that the series could be accepted
quickly.  So it would be good to split patches sometimes especially if
they are irrelevant.

Regards,

Ok, thanks for this helpful suggestion. Will send this patch alone in the next version. :)

Have a nice day
Fei





reply via email to

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