mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
iothread: fix breakage on windows
OOB can enable iothread for parsing even on Windows. We need some tunes to enable that on Windows otherwise it'll break Windows users. This patch fixes the breakage on Windows with qemu-system-ppc.exe. Reported-by: Howard Spoelstra <hsp.cat7@gmail.com> Tested-by: Howard Spoelstra <hsp.cat7@gmail.com> Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20180322085630.23654-1-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
09c2c6ffda
commit
90c558beca
2 changed files with 7 additions and 1 deletions
|
@ -31,11 +31,15 @@ typedef ObjectClass IOThreadClass;
|
|||
#define IOTHREAD_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(IOThreadClass, klass, TYPE_IOTHREAD)
|
||||
|
||||
#ifdef CONFIG_POSIX
|
||||
/* Benchmark results from 2016 on NVMe SSD drives show max polling times around
|
||||
* 16-32 microseconds yield IOPS improvements for both iodepth=1 and iodepth=32
|
||||
* workloads.
|
||||
*/
|
||||
#define IOTHREAD_POLL_MAX_NS_DEFAULT 32768ULL
|
||||
#else
|
||||
#define IOTHREAD_POLL_MAX_NS_DEFAULT 0ULL
|
||||
#endif
|
||||
|
||||
static __thread IOThread *my_iothread;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue