Re: [PATCH v2 25/39] chardev/char-file: Add FILE_SHARE_WRITE when openning the file for win32

2022-09-24 Thread Bin Meng
On Sat, Sep 24, 2022 at 4:10 PM Bin Meng wrote: > > On Fri, Sep 23, 2022 at 4:09 AM Marc-André Lureau > wrote: > > > > Hi > > > > On Tue, Sep 20, 2022 at 2:33 PM Bin Meng wrote: > >> > >> From: Xuzhou Cheng > >> > >> The combination of GENERIC_WRITE and FILE_SHARE_READ options does > >> not all

Re: [PATCH v2 25/39] chardev/char-file: Add FILE_SHARE_WRITE when openning the file for win32

2022-09-24 Thread Bin Meng
On Fri, Sep 23, 2022 at 4:09 AM Marc-André Lureau wrote: > > Hi > > On Tue, Sep 20, 2022 at 2:33 PM Bin Meng wrote: >> >> From: Xuzhou Cheng >> >> The combination of GENERIC_WRITE and FILE_SHARE_READ options does >> not allow the same file to be opened again by CreateFile() from >> another QEMU

Re: [PATCH v2 25/39] chardev/char-file: Add FILE_SHARE_WRITE when openning the file for win32

2022-09-22 Thread Marc-André Lureau
Hi On Tue, Sep 20, 2022 at 2:33 PM Bin Meng wrote: > From: Xuzhou Cheng > > The combination of GENERIC_WRITE and FILE_SHARE_READ options does > not allow the same file to be opened again by CreateFile() from > another QEMU process with the same options when the previous QEMU > process still hol

[PATCH v2 25/39] chardev/char-file: Add FILE_SHARE_WRITE when openning the file for win32

2022-09-20 Thread Bin Meng
From: Xuzhou Cheng The combination of GENERIC_WRITE and FILE_SHARE_READ options does not allow the same file to be opened again by CreateFile() from another QEMU process with the same options when the previous QEMU process still holds the file handle opened. This was triggered by running the tes