Patch Round-up for stable 1.3.1, freeze Monday
Hi everyone,
The following new patches are queued for QEMU stable v1.3.1:
https://github.com/mdroth/qemu/commits/stable-1.3-staging
The release is planned for 01-25-2013:
http://wiki.qemu.org/Planning/1.3
Please CC [email protected] on any patches you think should be included in the release. The cut-off date is 01-21-2013 for new patches.
Testing/feedback is greatly appreciated.
Thanks!
204dd38 raw-posix: fix bdrv_aio_ioctl (Paolo Bonzini)
86bab45 vfio-pci: Loosen sanity checks to allow future features (Alex Williamson) 006c747 pci-assign: Enable MSIX on device to match guest (Alex Williamson)
f042cca vfio-pci: Make host MSI-X enable track guest (Alex Williamson)
1205b80 target-xtensa: fix search_pc for the last TB opcode (Max Filippov)
ff0c079 buffered_file: do not send more than s->bytes_xfer bytes per tick (Paolo Bonzini) d745511 migration: fix migration_bitmap leak (Paolo Bonzini)
5afd0ec e1000: Discard oversized packets based on SBP|LPE (Michael Contreras) c4cd5b0 qxl+vnc: register a vm state change handler for dummy spice_server (Uri Lublin) 7ca2496 qxl: save qemu_create_displaysurface_from result (Gerd Hoffmann)
bfae937 target-xtensa: fix ITLB/DTLB page protection flags (Max Filippov)
b68c48f pixman: fix vnc tight png/jpeg support (Gerd Hoffmann)
36fd817 Update seabios to a810e4e72a0d42c7bc04eda57382f8e019add901 (Gerd Hoffmann) 0bc5f4a seabios: update to e8a76b0f225bba5ba9d63ab227e0a37b3beb1059 (Gerd Hoffmann) 37e1428 vfio-pci: Don't use kvm_irqchip_in_kernel (Alex Williamson)
518799a target-mips: Fix incorrect shift for SHILO and SHILOV (Petar Jovanovic) 16c5fe4 target-mips: Fix incorrect code and test for INSV (Petar Jovanovic) f1a2195 migration: Fix madvise breakage if host and guest have different page sizes (David Gibson) 3b4fc1f Fix off-by-1 error in RAM migration code (David Gibson)
d67d95f Disable semaphores fallback code for OpenBSD (Brad Smith)
0a7ad69 Fix semaphores fallback code (Brad Smith)
PATCH 1/21 Fix semaphores fallback code
From: Brad Smith <[email protected]>
As reported in bug 1087114 the semaphores fallback code is broken which results in QEMU crashing and making QEMU unusable.
This patch is from Paolo.
This needs to be back ported to the 1.3 stable tree as well.
--- qemu-thread-posix.c | 1 + 1 file changed, 1 insertion(+)
qemu-thread-posix.c +1 -0
@@ -213,6 +213,7 @@ int qemu_sem_timedwait(QemuSemaphore *sem, int ms)while (sem->count <0 ) { rc =pthread_cond_timedwait (&sem->cond, &sem->lock, &ts);if (rc ==ETIMEDOUT ) { + ++sem->count;break ; }if (rc !=0 ) {
Signature · 1 line
1.7.9.5
PATCH 2/21 Disable semaphores fallback code for OpenBSD
In reply to Michael RothFrom: Brad Smith <[email protected]>
Disable the semaphores fallback code for OpenBSD as modern OpenBSD releases now have sem_timedwait().
--- qemu-thread-posix.c | 10 +++++----- qemu-thread-posix.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-)
qemu-thread-posix.c +5 -5
@@ -122,7 +122,7 @@ void qemu_sem_init(QemuSemaphore *sem, int init) {int rc; -#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) || defined(__NetBSD__) rc =pthread_mutex_init (&sem->lock,NULL );if (rc !=0 ) {error_exit (rc, __func__);
@@ -147,7 +147,7 @@ void qemu_sem_destroy(QemuSemaphore *sem) {int rc; -#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) || defined(__NetBSD__) rc =pthread_cond_destroy (&sem->cond);if (rc <0 ) {error_exit (rc, __func__);
@@ -168,7 +168,7 @@ void qemu_sem_post(QemuSemaphore *sem) {int rc; -#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) || defined(__NetBSD__)pthread_mutex_lock (&sem->lock);if (sem->count ==INT_MAX ) { rc =EINVAL ;
@@ -206,7 +206,7 @@ int qemu_sem_timedwait(QemuSemaphore *sem, int ms)int rc;struct timespec ts; -#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) || defined(__NetBSD__)compute_abs_deadline (&ts, ms);pthread_mutex_lock (&sem->lock); --sem->count;
@@ -249,7 +249,7 @@ int qemu_sem_timedwait(QemuSemaphore *sem, int ms)void qemu_sem_wait (QemuSemaphore *sem) { -#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) || defined(__NetBSD__)pthread_mutex_lock (&sem->lock); --sem->count;while (sem->count <0 ) {
qemu-thread-posix.h +1 -1
@@ -12,7 +12,7 @@ struct QemuCond { };struct QemuSemaphore { -#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) || defined(__NetBSD__)pthread_mutex_t lock;pthread_cond_t cond;int count;
Signature · 1 line
1.7.9.5
PATCH 3/21 Fix off-by-1 error in RAM migration code
In reply to Michael RothFrom: David Gibson <[email protected]>
The code for migrating (or savevm-ing) memory pages starts off by creating a dirty bitmap and filling it with 1s. Except, actually, because bit addresses are 0-based it fills every bit except bit 0 with 1s and puts an extra 1 beyond the end of the bitmap, potentially corrupting unrelated memory. Oops. This patch fixes it.
--- arch_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch_init.c +1 -1
@@ -568,7 +568,7 @@ static int ram_save_setup(QEMUFile *f, void *opaque)int64_t ram_pages =last_ram_offset () >>TARGET_PAGE_BITS ; migration_bitmap =bitmap_new (ram_pages); -bitmap_set (migration_bitmap,1 , ram_pages); +bitmap_set (migration_bitmap,0 , ram_pages); migration_dirty_pages = ram_pages; bytes_transferred =0 ;
Signature · 1 line
1.7.9.5
PATCH 4/21 migration: Fix madvise breakage if host and guest have different page sizes
In reply to Michael RothFrom: David Gibson <[email protected]>
madvise(DONTNEED) will throw away the contents of the whole page at the given address, even if the given length is less than the page size. One can argue about whether that's the correct behaviour, but that's what it's done for a long time in Linux at least.
That means that the madvise() in ram_load(), on a setup where TARGET_PAGE_SIZE is smaller than the host page size, can throw away data in guest pages adjacent to the one it's actually processing right now, leading to guest memory corruption on an incoming migration.
This patch therefore, disables the madvise() if the host page size is larger than TARGET_PAGE_SIZE. This means we don't get the benefits of that madvise() in this case, but a more complete fix is more difficult to accomplish. This at least fixes the guest memory corruption.
--- arch_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch_init.c +2 -1
@@ -840,7 +840,8 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)memset (host, ch,TARGET_PAGE_SIZE );#ifndef _WIN32if (ch ==0 && - (!kvm_enabled () ||kvm_has_sync_mmu ())) { + (!kvm_enabled () ||kvm_has_sync_mmu ()) && +getpagesize () <=TARGET_PAGE_SIZE ) {qemu_madvise (host,TARGET_PAGE_SIZE ,QEMU_MADV_DONTNEED ); }#endif
Signature · 1 line
1.7.9.5
PATCH 5/21 target-mips: Fix incorrect code and test for INSV
In reply to Michael RothFrom: Petar Jovanovic <[email protected]>
Content of register rs should be shifted for pos before applying a mask. This change contains both fix for the instruction and to the existing test.
--- target-mips/dsp_helper.c | 2 +- tests/tcg/mips/mips32-dsp/insv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
target-mips/dsp_helper.c +1 -1
@@ -3152,7 +3152,7 @@ target_ulong helper_##name(CPUMIPSState *env, target_ulong rs, \ \ filter = ((int32_t )0x01 << size) -1 ; \ filter = filter << pos; \ - temprs = rs & filter; \ + temprs = (rs << pos) & filter; \ temprt = rt & ~filter; \ temp = temprs | temprt; \ \
tests/tcg/mips/mips32-dsp/insv.c +1 -1
@@ -10,7 +10,7 @@ int main() dsp =0x305 ; rt =0x12345678 ; rs =0x87654321 ; - result =0x12345338 ; + result =0x12345438 ; __asm ("wrdsp %2, 0x03\n\t" "insv %0, %1\n\t"
Signature · 1 line
1.7.9.5
PATCH 6/21 target-mips: Fix incorrect shift for SHILO and SHILOV
In reply to Michael RothFrom: Petar Jovanovic <[email protected]>
helper_shilo has not been shifting an accumulator value correctly for negative values in 'shift' field. Minor optimization for shift=0 case. This change also adds tests that will trigger issue and check for regressions.
--- target-mips/dsp_helper.c | 17 +++++++++-------- tests/tcg/mips/mips32-dsp/shilo.c | 18 ++++++++++++++++++ tests/tcg/mips/mips32-dsp/shilov.c | 20 ++++++++++++++++++++ 3 files changed, 47 insertions(+), 8 deletions(-)
target-mips/dsp_helper.c +9 -8
@@ -3814,17 +3814,18 @@ void helper_shilo(target_ulong ac, target_ulong rs, CPUMIPSState *env) rs5_0 = rs &0x3F ; rs5_0 = (int8_t )(rs5_0 <<2 ) >>2 ; - rs5_0 =MIPSDSP_ABS (rs5_0); + +if (unlikely (rs5_0 ==0 )) { +return ; + } + acc = (((uint64_t )env->active_tc.HI[ac] <<32 ) &MIPSDSP_LHI ) | ((uint64_t )env->active_tc.LO[ac] &MIPSDSP_LLO ); -if (rs5_0 ==0 ) { - temp = acc; + +if (rs5_0 >0 ) { + temp = acc >> rs5_0; }else { -if (rs5_0 >0 ) { - temp = acc >> rs5_0; - }else { - temp = acc << rs5_0; - } + temp = acc << -rs5_0; } env->active_tc.HI[ac] = (target_ulong)(int32_t)((temp &MIPSDSP_LHI ) >>32 );
tests/tcg/mips/mips32-dsp/shilo.c +18 -0
@@ -23,5 +23,23 @@ int main()assert (ach == resulth);assert (acl == resultl); + + ach =0x1 ; + acl =0x80000000 ; + + resulth =0x3 ; + resultl =0x0 ; + + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"shilo $ac1, -1\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + ); +assert (ach == resulth); +assert (acl == resultl); +return 0 ; }
tests/tcg/mips/mips32-dsp/shilov.c +20 -0
@@ -25,5 +25,25 @@ int main()assert (ach == resulth);assert (acl == resultl); + + rs =0xffffffff ; + ach =0x1 ; + acl =0x80000000 ; + + resulth =0x3 ; + resultl =0x0 ; + + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"shilov $ac1, %2\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + :"r" (rs) + ); +assert (ach == resulth); +assert (acl == resultl); +return 0 ; }
Signature · 1 line
1.7.9.5
PATCH 7/21 vfio-pci: Don't use kvm_irqchip_in_kernel
In reply to Michael RothFrom: Alex Williamson <[email protected]>
kvm_irqchip_in_kernel() has an architecture specific meaning, so we shouldn't be using it to determine whether to enabled KVM INTx bypass. kvm_irqfds_enabled() seems most appropriate. Also use this to protect our other call to kvm_check_extension() as that explodes when KVM isn't enabled.
--- hw/vfio_pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
hw/vfio_pci.c +3 -2
@@ -275,7 +275,7 @@ static void vfio_enable_intx_kvm(VFIODevice *vdev)int ret, argsz;int32_t *pfd; -if (!kvm_irqchip_in_kernel () || +if (!kvm_irqfds_enabled () || vdev->intx.route.mode !=PCI_INTX_ENABLED || !kvm_check_extension (kvm_state,KVM_CAP_IRQFD_RESAMPLE )) {return ;
@@ -438,7 +438,8 @@ static int vfio_enable_intx(VFIODevice *vdev)* Only conditional to avoid generating error messages on platforms * where we won't actually use the result anyway. */ -if (kvm_check_extension (kvm_state,KVM_CAP_IRQFD_RESAMPLE )) { +if (kvm_irqfds_enabled () && +kvm_check_extension (kvm_state,KVM_CAP_IRQFD_RESAMPLE )) { vdev->intx.route =pci_device_route_intx_to_irq (&vdev->pdev, vdev->intx.pin); }
Signature · 1 line
1.7.9.5
PATCH 11/21 target-xtensa: fix ITLB/DTLB page protection flags
In reply to Michael RothFrom: Max Filippov <[email protected]>
With MMU option xtensa architecture has two TLBs: ITLB and DTLB. ITLB is only used for code access, DTLB is only for data. However TLB entries in both TLBs have attribute field controlling write and exec access. These bits need to be properly masked off depending on TLB type before being used as tlb_set_page prot argument. Otherwise the following happens:
(1) ITLB entry for some PFN gets invalidated
(2) DTLB entry for the same PFN gets updated, attributes allow code execution
(3) code at the page with that PFN is executed (possible due to step 2), entry for the TB is written into the jump cache
(4) QEMU TLB entry for the PFN gets replaced with an entry for some other PFN
(5) code in the TB from step 3 is executed (possible due to jump cache) and it accesses data, for which there's no DTLB entry, causing DTLB miss exception
(6) re-translation of the TB from step 5 is attempted, but there's no QEMU TLB entry nor xtensa ITLB entry for that PFN, which causes ITLB miss exception at the TB start address
(7) ITLB miss exception is handled by the guest, but execution is resumed from the beginning of the faulting TB (the point where ITLB miss occured), not from the point where DTLB miss occured, which is wrong.
With that fix the above scenario causes ITLB miss exception (that used to be step 7) at step 3, right at the beginning of the TB.
--- target-xtensa/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
target-xtensa/helper.c +2 -1
@@ -486,7 +486,8 @@ static int get_physical_addr_mmu(CPUXtensaState *env, bool update_tlb,INST_FETCH_PRIVILEGE_CAUSE ; } - *access =mmu_attr_to_access (entry->attr); + *access =mmu_attr_to_access (entry->attr) & + ~(dtlb ?PAGE_EXEC :PAGE_READ |PAGE_WRITE );if (!is_access_granted (*access, is_write)) { return dtlb ? (is_write ?
Signature · 1 line
1.7.9.5
PATCH 12/21 qxl: save qemu_create_displaysurface_from result
In reply to Michael RothFrom: Gerd Hoffmann <[email protected]>
Spotted by Coverity.
https://bugzilla.redhat.com/show_bug.cgi?id=885644
--- hw/qxl-render.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
hw/qxl-render.c +6 -5
@@ -113,11 +113,12 @@ static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl) qxl->guest_primary.bits_pp);if (qxl->guest_primary.qxl_stride >0 ) {qemu_free_displaysurface (vga->ds); -qemu_create_displaysurface_from (qxl->guest_primary.surface.width, - qxl->guest_primary.surface.height, - qxl->guest_primary.bits_pp, - qxl->guest_primary.abs_stride, - qxl->guest_primary.data); + vga->ds->surface =qemu_create_displaysurface_from + (qxl->guest_primary.surface.width, + qxl->guest_primary.surface.height, + qxl->guest_primary.bits_pp, + qxl->guest_primary.abs_stride, + qxl->guest_primary.data); }else { qemu_resize_displaysurface(vga->ds, qxl->guest_primary.surface.width,
Signature · 1 line
1.7.9.5
PATCH 8/21 seabios: update to e8a76b0f225bba5ba9d63ab227e0a37b3beb1059
In reply to Michael RothFrom: Gerd Hoffmann <[email protected]>
This patch updates seabios to latest git master. Changes:
(1) q35 patches merged.
(2) some acpi cleanups.
(3) fixes irq 8 conflict.
(3) makes this a candidate for the stable branch
--- pc-bios/acpi-dsdt.aml | Bin 4540 -> 4438 bytes pc-bios/bios.bin | Bin 131072 -> 262144 bytes pc-bios/q35-acpi-dsdt.aml | Bin 0 -> 7458 bytes roms/seabios | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 pc-bios/q35-acpi-dsdt.aml
pc-bios/acpi-dsdt.aml binary +0 -0
pc-bios/bios.bin binary +0 -0
pc-bios/q35-acpi-dsdt.aml new file binary +0 -0
roms/seabios +1 -1
@@ -1 +1 @@ -Subproject commit b1c35f2b28cc0c94ebed8176ff61ac0e0b377798 +Subproject commit e8a76b0f225bba5ba9d63ab227e0a37b3beb1059
Signature · 1 line
1.7.9.5
PATCH 10/21 pixman: fix vnc tight png/jpeg support
In reply to Michael RothFrom: Gerd Hoffmann <[email protected]>
This patch adds an x argument to qemu_pixman_linebuf_fill so it can also be used to convert a partial scanline. Then fix tight + png/jpeg encoding by passing in the x+y offset, so the data is read from the correct screen location instead of the upper left corner.
--- hw/vga.c | 2 +- qemu-pixman.c | 4 ++-- qemu-pixman.h | 2 +- ui/vnc-enc-tight.c | 4 ++-- ui/vnc.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-)
hw/vga.c +1 -1
@@ -2413,7 +2413,7 @@ void ppm_save(const char *filename, struct DisplaySurface *ds, Error **errp) } linebuf =qemu_pixman_linebuf_create (PIXMAN_BE_r8g8b8, width);for (y =0 ; y < height; y++) { -qemu_pixman_linebuf_fill (linebuf, ds->image, width, y); +qemu_pixman_linebuf_fill (linebuf, ds->image, width,0 , y);clearerr (f); ret =fwrite (pixman_image_get_data (linebuf),1 ,pixman_image_get_stride (linebuf), f);
qemu-pixman.c +2 -2
@@ -52,10 +52,10 @@ pixman_image_t *qemu_pixman_linebuf_create(pixman_format_code_t format, }void qemu_pixman_linebuf_fill (pixman_image_t *linebuf,pixman_image_t *fb, -int width,int y) +int width,int x,int y) {pixman_image_composite (PIXMAN_OP_SRC , fb,NULL , linebuf, -0 , y,0 ,0 ,0 ,0 , width,1 ); + x, y,0 ,0 ,0 ,0 , width,1 ); } pixman_image_t *qemu_pixman_mirror_create(pixman_format_code_t format,
qemu-pixman.h +1 -1
@@ -31,7 +31,7 @@ pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf);pixman_image_t *qemu_pixman_linebuf_create (pixman_format_code_t format,int width);void qemu_pixman_linebuf_fill (pixman_image_t *linebuf,pixman_image_t *fb, -int width,int y); +int width,int x,int y);pixman_image_t *qemu_pixman_mirror_create (pixman_format_code_t format,pixman_image_t *image);void qemu_pixman_image_unref (pixman_image_t *image);
ui/vnc-enc-tight.c +2 -2
@@ -1212,7 +1212,7 @@ static int send_jpeg_rect(VncState *vs, int x, int y, int w, int h, int quality) buf = (uint8_t *)pixman_image_get_data (linebuf); row[0 ] = buf;for (dy =0 ; dy < h; dy++) { -qemu_pixman_linebuf_fill (linebuf, vs->vd->server, w, dy); +qemu_pixman_linebuf_fill (linebuf, vs->vd->server, w, x, y + dy);jpeg_write_scanlines (&cinfo, row,1 ); }qemu_pixman_image_unref (linebuf);
@@ -1356,7 +1356,7 @@ static int send_png_rect(VncState *vs, int x, int y, int w, int h,if (color_type ==PNG_COLOR_TYPE_PALETTE ) {memcpy (buf, vs->tight.tight.buffer + (dy * w), w); }else { -qemu_pixman_linebuf_fill (linebuf, vs->vd->server, w, dy); +qemu_pixman_linebuf_fill (linebuf, vs->vd->server, w, x, y + dy); }png_write_row (png_ptr, buf); }
ui/vnc.c +1 -1
@@ -2569,7 +2569,7 @@ static int vnc_refresh_server_surface(VncDisplay *vd)uint8_t *server_ptr;if (vd->guest.format !=VNC_SERVER_FB_FORMAT ) { -qemu_pixman_linebuf_fill (tmpbuf, vd->guest.fb, width, y); +qemu_pixman_linebuf_fill (tmpbuf, vd->guest.fb, width,0 , y); guest_ptr = (uint8_t *)pixman_image_get_data (tmpbuf); }else { guest_ptr = guest_row;
Signature · 1 line
1.7.9.5
PATCH 13/21 qxl+vnc: register a vm state change handler for dummy spice_server
In reply to Michael RothFrom: Uri Lublin <[email protected]>
When qxl + vnc are used, a dummy spice_server is initialized. The spice_server has to be told when the VM runstate changes, which is what this patch does.
Without it, from qxl_send_events(), the following error message is shown:
qxl_send_events: spice-server bug: guest stopped, ignoring
--- ui/spice-core.c | 2 ++ 1 file changed, 2 insertions(+)
ui/spice-core.c +2 -0
@@ -732,6 +732,8 @@ int qemu_spice_add_interface(SpiceBaseInstance *sin)*/ spice_server =spice_server_new ();spice_server_init (spice_server, &core_interface); +qemu_add_vm_change_state_handler (vm_change_state_handler, + &spice_server); }return spice_server_add_interface (spice_server, sin);
Signature · 1 line
1.7.9.5
PATCH 15/21 migration: fix migration_bitmap leak
In reply to Michael RothFrom: Paolo Bonzini <[email protected]>
--- arch_init.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
arch_init.c +7 -6
@@ -535,9 +535,13 @@ static void sort_ram_list(void)static void migration_end (void ) { -memory_global_dirty_log_stop (); +if (migration_bitmap) { +memory_global_dirty_log_stop (); +g_free (migration_bitmap); + migration_bitmap =NULL ; + } -if (migrate_use_xbzrle ()) { +if (XBZRLE .cache) {cache_fini (XBZRLE .cache);g_free (XBZRLE .cache);g_free (XBZRLE .encoded_buf);
@@ -689,13 +693,10 @@ static int ram_save_complete(QEMUFile *f, void *opaque) } bytes_transferred += bytes_sent; } -memory_global_dirty_log_stop (); +migration_end ();qemu_put_be64 (f,RAM_SAVE_FLAG_EOS ); -g_free (migration_bitmap); - migration_bitmap =NULL ; -return 0 ; }
Signature · 1 line
1.7.9.5
PATCH 16/21 buffered_file: do not send more than s->bytes_xfer bytes per tick
In reply to Michael RothFrom: Paolo Bonzini <[email protected]>
Sending more was possible if the buffer was large.
--- buffered_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
buffered_file.c +2 -2
@@ -66,9 +66,9 @@ static ssize_t buffered_flush(QEMUFileBuffered *s)DPRINTF ("flushing %zu byte(s) of data\n" , s->buffer_size);while (s->bytes_xfer < s->xfer_limit && offset < s->buffer_size) { - +size_t to_send =MIN (s->buffer_size - offset, s->xfer_limit - s->bytes_xfer); ret =migrate_fd_put_buffer (s->migration_state, s->buffer + offset, - s->buffer_size - offset); + to_send);if (ret == -EAGAIN ) {DPRINTF ("backend not ready, freezing\n" ); ret =0 ;
Signature · 1 line
1.7.9.5
PATCH 14/21 e1000: Discard oversized packets based on SBP|LPE
In reply to Michael RothFrom: Michael Contreras <[email protected]>
Discard packets longer than 16384 when !SBP to match the hardware behavior.
--- hw/e1000.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
hw/e1000.c +5 -2
@@ -61,6 +61,8 @@ static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);/* this is the size past which hardware will drop packets when setting LPE=0 */ #define MAXIMUM_ETHERNET_VLAN_SIZE 1522 +/* this is the size past which hardware will drop packets when setting LPE=1 */ +#define MAXIMUM_ETHERNET_LPE_SIZE 16384/* * HW models:
@@ -809,8 +811,9 @@ e1000_receive(NetClientState *nc, const uint8_t *buf, size_t size) }/* Discard oversized packets if !LPE and !SBP. */ -if (size >MAXIMUM_ETHERNET_VLAN_SIZE - && !(s->mac_reg[RCTL ] &E1000_RCTL_LPE ) +if ((size >MAXIMUM_ETHERNET_LPE_SIZE || + (size >MAXIMUM_ETHERNET_VLAN_SIZE + && !(s->mac_reg[RCTL ] &E1000_RCTL_LPE ))) && !(s->mac_reg[RCTL ] &E1000_RCTL_SBP )) {return size; }
Signature · 1 line
1.7.9.5
PATCH 17/21 target-xtensa: fix search_pc for the last TB opcode
In reply to Michael RothFrom: Max Filippov <[email protected]>
Zero out tcg_ctx.gen_opc_instr_start for instructions representing the last guest opcode in the TB.
*modified to use older global version of gen_opc_instr_start
--- target-xtensa/translate.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
target-xtensa/translate.c +5 -1
@@ -2962,7 +2962,11 @@ static void gen_intermediate_code_internal(gen_icount_end (tb, insn_count); *tcg_ctx.gen_opc_ptr = INDEX_op_end; -if (!search_pc) { +if (search_pc) { + j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; +memset (gen_opc_instr_start + lj +1 ,0 , + (j - lj) *sizeof (gen_opc_instr_start[0 ])); + }else { tb->size = dc.pc - pc_start; tb->icount = insn_count; }
Signature · 1 line
1.7.9.5
PATCH 20/21 vfio-pci: Loosen sanity checks to allow future features
In reply to Michael RothFrom: Alex Williamson <[email protected]>
VFIO_PCI_NUM_REGIONS and VFIO_PCI_NUM_IRQS should never have been used in this manner as it locks a specific kernel implementation. Future features may introduce new regions or interrupt entries (VGA may add legacy ranges, AER might add an IRQ for error signalling). Fix this before it gets us into trouble.
--- hw/vfio_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/vfio_pci.c +2 -2
@@ -1837,13 +1837,13 @@ static int vfio_get_device(VFIOGroup *group, const char *name, VFIODevice *vdev)error_report ("Warning, device %s does not support reset\n" , name); } -if (dev_info.num_regions !=VFIO_PCI_NUM_REGIONS ) { +if (dev_info.num_regions <VFIO_PCI_CONFIG_REGION_INDEX +1 ) {error_report ("vfio: unexpected number of io regions %u\n" , dev_info.num_regions); goto error; } -if (dev_info.num_irqs !=VFIO_PCI_NUM_IRQS ) { +if (dev_info.num_irqs <VFIO_PCI_MSIX_IRQ_INDEX +1 ) {error_report ("vfio: unexpected number of irqs %u\n" , dev_info.num_irqs); goto error; }
Signature · 1 line
1.7.9.5
PATCH 19/21 pci-assign: Enable MSIX on device to match guest
In reply to Michael RothFrom: Alex Williamson <[email protected]>
When a guest enables MSIX on a device we evaluate the MSIX vector table, typically find no unmasked vectors and don't switch the device to MSIX mode. This generally works fine and the device will be switched once the guest enables and therefore unmasks a vector. Unfortunately some drivers enable MSIX, then use interfaces to send commands between VF & PF or PF & firmware that act based on the host state of the device. These therefore may break when MSIX is managed lazily. This change re-enables the previous test used to enable MSIX (see qemu-kvm a6b402c9), which basically guesses whether a vector will be used based on the data field of the vector table.
--- hw/kvm/pci-assign.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
hw/kvm/pci-assign.c +15 -2
@@ -1025,6 +1025,19 @@ static bool assigned_dev_msix_masked(MSIXTableEntry *entry)return (entry->ctrl &cpu_to_le32 (0x1 )) !=0 ; } +/* +* When MSI-X is first enabled the vector table typically has all the +* vectors masked, so we can't use that as the obvious test to figure out +* how many vectors to initially enable. Instead we look at the data field +* because this is what worked for pci-assign for a long time. This makes +* sure the physical MSI-X state tracks the guest's view, which is important +* for some VF/PF and PF/fw communication channels. +*/ +static bool assigned_dev_msix_skipped (MSIXTableEntry *entry) +{ +return !entry->data; +} +static int assigned_dev_update_msix_mmio (PCIDevice *pci_dev) {AssignedDevice *adev =DO_UPCAST (AssignedDevice, dev, pci_dev);
@@ -1035,7 +1048,7 @@ static int assigned_dev_update_msix_mmio(PCIDevice *pci_dev)/* Get the usable entry number for allocating */ for (i =0 ; i < adev->msix_max; i++, entry++) { -if (assigned_dev_msix_masked (entry)) { +if (assigned_dev_msix_skipped (entry)) {continue ; } entries_nr++;
@@ -1064,7 +1077,7 @@ static int assigned_dev_update_msix_mmio(PCIDevice *pci_dev)for (i =0 ; i < adev->msix_max; i++, entry++) { adev->msi_virq[i] =-1 ; -if (assigned_dev_msix_masked (entry)) { +if (assigned_dev_msix_skipped (entry)) {continue ; }
Signature · 1 line
1.7.9.5
PATCH 9/21 Update seabios to a810e4e72a0d42c7bc04eda57382f8e019add901
In reply to Michael RothFrom: Gerd Hoffmann <[email protected]>
git shortlog:
Kevin O'Connor (6):
floppy: Minor - reduce handle_0e code size when CONFIG_FLOPPY is disabled.
vga: Minor comment spelling fix.
Don't recursively evaluate CFLAGS variables.
Don't use gcc's -combine option.
Add compile checking phase to build.
acpi: Use prt_slot() macro to describe irq pins of first PCI device.
Laszlo Ersek (1):
maininit(): print machine UUID under seabios version message
Paolo Bonzini (1):
acpi: reintroduce LNKS
Paolo's patch fixes the FreeBSD boot failure.
--- pc-bios/acpi-dsdt.aml | Bin 4438 -> 4521 bytes pc-bios/bios.bin | Bin 262144 -> 131072 bytes pc-bios/q35-acpi-dsdt.aml | Bin 7458 -> 7458 bytes roms/seabios | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-)
pc-bios/acpi-dsdt.aml binary +0 -0
pc-bios/bios.bin binary +0 -0
pc-bios/q35-acpi-dsdt.aml binary +0 -0
roms/seabios +1 -1
@@ -1 +1 @@ -Subproject commit e8a76b0f225bba5ba9d63ab227e0a37b3beb1059 +Subproject commit a810e4e72a0d42c7bc04eda57382f8e019add901
Signature · 1 line
1.7.9.5
PATCH 21/21 raw-posix: fix bdrv_aio_ioctl
In reply to Michael RothFrom: Paolo Bonzini <[email protected]>
When the raw-posix aio=thread code was moved from posix-aio-compat.c to block/raw-posix.c, there was an unintended change to the ioctl code. The code used to return the ioctl command, which posix_aio_read() would later morph into a zero. This hack is not necessary anymore, and in fact breaks scsi-generic (which expects a zero return code). Remove it.
--- block/raw-posix.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
block/raw-posix.c +1 -9
@@ -456,15 +456,7 @@ static ssize_t handle_aiocb_ioctl(RawPosixAIOData *aiocb)return -errno; } -/* -* This looks weird, but the aio code only considers a request -* successful if it has written the full number of bytes. -* -* Now we overload aio_nbytes as aio_ioctl_cmd for the ioctl command, -* so in fact we return the ioctl command here to make posix_aio_read() -* happy.. -*/ -return aiocb->aio_nbytes; +return 0 ; }static ssize_t handle_aiocb_flush (RawPosixAIOData *aiocb)
Signature · 1 line
1.7.9.5
PATCH 18/21 vfio-pci: Make host MSI-X enable track guest
In reply to Michael RothFrom: Alex Williamson <[email protected]>
Guests typically enable MSI-X with all of the vectors in the MSI-X vector table masked. Only when the vector is enabled does the vector get unmasked, resulting in a vector_use callback. These two points, enable and unmask, correspond to pci_enable_msix() and request_irq() for Linux guests. Some drivers rely on VF/PF or PF/fw communication channels that expect the physical state of the device to match the guest visible state of the device. They don't appreciate lazily enabling MSI-X on the physical device.
To solve this, enable MSI-X with a single vector when the MSI-X capability is enabled and immediate disable the vector. This leaves the physical device in exactly the same state between host and guest. Furthermore, the brief gap where we enable vector 0, it fires into userspace, not KVM, so the guest doesn't get spurious interrupts. Ideally we could call VFIO_DEVICE_SET_IRQS with the right parameters to enable MSI-X with zero vectors, but this will currently return an error as the Linux MSI-X interfaces do not allow it.
--- hw/vfio_pci.c | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-)
hw/vfio_pci.c +26 -4
@@ -562,8 +562,8 @@ static int vfio_enable_vectors(VFIODevice *vdev, bool msix)return ret; } -static int vfio_msix_vector_use (PCIDevice *pdev, -unsigned int nr,MSIMessage msg) +static int vfio_msix_vector_do_use (PCIDevice *pdev,unsigned int nr, +MSIMessage *msg,IOHandler *handler) {VFIODevice *vdev =DO_UPCAST (VFIODevice, pdev, pdev);VFIOMSIVector *vector;
@@ -587,7 +587,7 @@ static int vfio_msix_vector_use(PCIDevice *pdev,* Attempt to enable route through KVM irqchip, * default to userspace handling if unavailable. */ - vector->virq =kvm_irqchip_add_msi_route (kvm_state, msg); + vector->virq = msg ?kvm_irqchip_add_msi_route (kvm_state, *msg) :-1 ;if (vector->virq <0 ||kvm_irqchip_add_irqfd_notifier (kvm_state, &vector->interrupt, vector->virq) <0 ) {
@@ -596,7 +596,7 @@ static int vfio_msix_vector_use(PCIDevice *pdev, vector->virq =-1 ; }qemu_set_fd_handler (event_notifier_get_fd (&vector->interrupt), - vfio_msi_interrupt,NULL , vector); + handler,NULL , vector); }/*
@@ -639,6 +639,12 @@ static int vfio_msix_vector_use(PCIDevice *pdev,return 0 ; } +static int vfio_msix_vector_use (PCIDevice *pdev, +unsigned int nr,MSIMessage msg) +{ +return vfio_msix_vector_do_use (pdev, nr, &msg, vfio_msi_interrupt); +} +static void vfio_msix_vector_release (PCIDevice *pdev,unsigned int nr) {VFIODevice *vdev =DO_UPCAST (VFIODevice, pdev, pdev);
@@ -697,6 +703,22 @@ static void vfio_enable_msix(VFIODevice *vdev) vdev->interrupt =VFIO_INT_MSIX ; +/* +* Some communication channels between VF & PF or PF & fw rely on the +* physical state of the device and expect that enabling MSI-X from the +* guest enables the same on the host. When our guest is Linux, the +* guest driver call to pci_enable_msix() sets the enabling bit in the +* MSI-X capability, but leaves the vector table masked. We therefore +* can't rely on a vector_use callback (from request_irq() in the guest) +* to switch the physical device into MSI-X mode because that may come a +* long time after pci_enable_msix(). This code enables vector 0 with +* triggering to userspace, then immediately release the vector, leaving +* the physical device with no vectors enabled, but MSI-X enabled, just +* like the guest view. +*/ +vfio_msix_vector_do_use (&vdev->pdev,0 ,NULL ,NULL ); +vfio_msix_vector_release (&vdev->pdev,0 ); +if (msix_set_vector_notifiers (&vdev->pdev, vfio_msix_vector_use, vfio_msix_vector_release)) {error_report ("vfio: msix_set_vector_notifiers failed\n" );
Signature · 1 line
1.7.9.5
Quoted 8 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.3.1:
https://github.com/mdroth/qemu/commits/stable-1.3-staging
The release is planned for 01-25-2013:
Quoted 8 lines
http://wiki.qemu.org/Planning/1.3
Please CC [email protected] on any patches you think should be included in the release. The cut-off date is 01-21-2013 for new patches.
Testing/feedback is greatly appreciated.
Thanks!
Actual commit IDs from the master branch, with some comments (with just one useful for 1.3 comment, about e1000 security fix):
Quoted 1 line
204dd38 raw-posix: fix
bdrv_aio_ioctl(Paolo Bonzini)
b608c8dc02c78ee95455a0989bdf1b41c768b2ef
Quoted 1 line
86bab45 vfio-pci: Loosen sanity checks to allow future features (Alex Williamson)
8fc94e5a8046e349e07976f9bcaffbcd5833f3a2
Quoted 1 line
006c747 pci-assign: Enable MSIX on device to match guest (Alex Williamson)
feb9a2ab4b0260d8d680a7ffd25063dafc7ec628
This is applicable to old qemu-kvm (pre-1.3-merge), so it is qemu-kvm 1.1 and qemu-kvm 1.2. I missed it for 1.1 because it is qemu-kvm-specific. Queued for debian qemu-kvm package.
Quoted 1 line
f042cca vfio-pci: Make host MSI-X enable track guest (Alex Williamson)
b0223e29afdc88cc262a764026296414396cd129
Quoted 1 line
1205b80 target-xtensa: fix
search_pcfor the last TB opcode (Max Filippov)
36f25d2537c40c6c47f4abee5d31a24863d1adf7
Now queued to stable-1.1 too.
Quoted 1 line
ff0c079
buffered_file: do not send more thans->bytes_xferbytes per tick (Paolo Bonzini)
bde54c08b4854aceee3dee25121a2b835cb81166
Now queued to stable-1.1 too, with backport changes.
Quoted 1 line
d745511 migration: fix
migration_bitmapleak (Paolo Bonzini)
244eaa7514a944b36273eb8428f32da8e9124fcf
Quoted 1 line
5afd0ec e1000: Discard oversized packets based on SBP|LPE (Michael Contreras)
2c0331f4f7d241995452b99afaf0aab00493334a
Guys, this is just one half of the CVE-2012-6075 fix. Please don't repeat the same mistake again and again. Second patch by Michael is neede to fix this too.
Note that recent Xen advisory (Xen Security Advisory 41) has the same issu, they fixed just the half of it.
Both are applied to stable-1.1.
Quoted 1 line
c4cd5b0 qxl+vnc: register a vm state change handler for dummy
spice_server(Uri Lublin)
938b8a36b65e44c44ca29245437f8d7ac0f826e8
post-1.2 material, needs 938b8a36b65e44c44ca29245437f8d7ac0f826e8 and probably a bunch of other stuff.
Quoted 1 line
7ca2496 qxl: save
qemu_create_displaysurface_fromresult (Gerd Hoffmann)
2f464b5a32b414adb545acc6d94b5c35c7d258ba
Now queued to stable-1.1
Quoted 1 line
bfae937 target-xtensa: fix ITLB/DTLB page protection flags (Max Filippov)
659f807c0a700317a7a0fae7a6e6ebfe68bfbbc4
Now queued to stable-1.1
Quoted 1 line
b68c48f pixman: fix vnc tight png/jpeg support (Gerd Hoffmann)
bc210eb163b162ff2e94e5c8f4307715731257f8
1.3+ material
Quoted 1 line
36fd817 Update seabios to
a810e4e72a0d42c7bc04eda57382f8e019add901(Gerd Hoffmann)
15faf946f7a17a5fab0d05a2312d43249d81af3c
Quoted 1 line
0bc5f4a seabios: update to
e8a76b0f225bba5ba9d63ab227e0a37b3beb1059(Gerd Hoffmann)
ff1562908d1da12362aa9e3f3bfc7ba0da8114a4
Quoted 1 line
37e1428 vfio-pci: Don't use
kvm_irqchip_in_kernel(Alex Williamson)
d281084d3e51f03999d12a506491a0c6f31b40e8
Quoted 1 line
518799a target-mips: Fix incorrect shift for SHILO and SHILOV (Petar Jovanovic)
19e6c50d2d843220efbdd3b2db21d83c122c364a
1.3+ material
Quoted 1 line
16c5fe4 target-mips: Fix incorrect code and test for INSV (Petar Jovanovic)
34f5606ee101f82a247d09d05644ad2a63c8e342
1.3+ material
Quoted 1 line
f1a2195 migration: Fix madvise breakage if host and guest have different page sizes (David Gibson)
45e6cee42b98d10e2e14885ab656541a9ffd5187
Now queued up for stable-1.1
Quoted 1 line
3b4fc1f Fix off-by-1 error in RAM migration code (David Gibson)
7ec81e56edc2b2007ce0ae3982aa5c18af9546ab 1.3+ (past c6bf8e0e0cf04b40a8a22426e00ebbd727331d8b)
Quoted 1 line
d67d95f Disable semaphores fallback code for OpenBSD (Brad Smith)
927fa909d5d5cf8c07673cd16a6d3bdc81250bc0 1.3+ (past c166cb72f1676855816340666c3b618beef4b976)
Quoted 1 line
0a7ad69 Fix semaphores fallback code (Brad Smith)
a795ef8dcb8cbadffc996c41ff38927a97645234 1.3+ (past c166cb72f1676855816340666c3b618beef4b976)
Thanks,
/mjt
Quoted 48 lines · Michael Tokarev
Quoted 8 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.3.1:
https://github.com/mdroth/qemu/commits/stable-1.3-staging
The release is planned for 01-25-2013:
Quoted 8 lines
http://wiki.qemu.org/Planning/1.3
Please CC [email protected] on any patches you think should be included in the release. The cut-off date is 01-21-2013 for new patches.
Testing/feedback is greatly appreciated.
Thanks!
Actual commit IDs from the master branch, with some comments (with just one useful for 1.3 comment, about e1000 security fix):
Quoted 1 line
204dd38 raw-posix: fix
bdrv_aio_ioctl(Paolo Bonzini)
b608c8dc02c78ee95455a0989bdf1b41c768b2efQuoted 1 line
86bab45 vfio-pci: Loosen sanity checks to allow future features (Alex Williamson)
8fc94e5a8046e349e07976f9bcaffbcd5833f3a2Quoted 1 line
006c747 pci-assign: Enable MSIX on device to match guest (Alex Williamson)
feb9a2ab4b0260d8d680a7ffd25063dafc7ec628This is applicable to old qemu-kvm (pre-1.3-merge), so it is qemu-kvm 1.1 and qemu-kvm 1.2. I missed it for 1.1 because it is qemu-kvm-specific. Queued for debian qemu-kvm package.
Quoted 1 line
f042cca vfio-pci: Make host MSI-X enable track guest (Alex Williamson)
b0223e29afdc88cc262a764026296414396cd129Quoted 1 line
1205b80 target-xtensa: fix
search_pcfor the last TB opcode (Max Filippov)
36f25d2537c40c6c47f4abee5d31a24863d1adf7Now queued to stable-1.1 too.
Quoted 1 line
ff0c079
buffered_file: do not send more thans->bytes_xferbytes per tick (Paolo Bonzini)
bde54c08b4854aceee3dee25121a2b835cb81166Now queued to stable-1.1 too, with backport changes.
Quoted 1 line
d745511 migration: fix
migration_bitmapleak (Paolo Bonzini)
Quoted 8 lines
244eaa7514a944b36273eb8428f32da8e9124fcfQuoted 1 line
5afd0ec e1000: Discard oversized packets based on SBP|LPE (Michael Contreras)
2c0331f4f7d241995452b99afaf0aab00493334aGuys, this is just one half of the CVE-2012-6075 fix. Please don't repeat the same mistake again and again. Second patch by Michael is neede to fix this too.
Do you mean b0d9ffcd0251161c7c92f94804dcf599dfa3edeb? If so, that one made it in just before 1.3.0, and this picks up the 2nd patch.
Quoted 11 lines · mdroth
Quoted 6 lines · Michael Tokarev
Quoted 1 line
5afd0ec e1000: Discard oversized packets based on SBP|LPE (Michael Contreras)
2c0331f4f7d241995452b99afaf0aab00493334aGuys, this is just one half of the CVE-2012-6075 fix. Please don't repeat the same mistake again and again. Second patch by Michael is neede to fix this too.
Do you mean
b0d9ffcd0251161c7c92f94804dcf599dfa3edeb? If so, that one made it in just before 1.3.0, and this picks up the 2nd patch.
Oh. Yes, you're right. N/m.
Thanks,
/mjt
Quoted 30 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.3.1:
https://github.com/mdroth/qemu/commits/stable-1.3-staging
The release is planned for 01-25-2013:
http://wiki.qemu.org/Planning/1.3
Please CC [email protected] on any patches you think should be included in the release. The cut-off date is 01-21-2013 for new patches.
Testing/feedback is greatly appreciated.
Thanks!
204dd38 raw-posix: fix
bdrv_aio_ioctl(Paolo Bonzini)
86bab45 vfio-pci: Loosen sanity checks to allow future features (Alex Williamson) 006c747 pci-assign: Enable MSIX on device to match guest (Alex Williamson) f042cca vfio-pci: Make host MSI-X enable track guest (Alex Williamson) 1205b80 target-xtensa: fixsearch_pcfor the last TB opcode (Max Filippov) ff0c079buffered_file: do not send more thans->bytes_xferbytes per tick (Paolo Bonzini) d745511 migration: fixmigration_bitmapleak (Paolo Bonzini)
5afd0ec e1000: Discard oversized packets based on SBP|LPE (Michael Contreras) c4cd5b0 qxl+vnc: register a vm state change handler for dummyspice_server(Uri Lublin) 7ca2496 qxl: saveqemu_create_displaysurface_fromresult (Gerd Hoffmann) bfae937 target-xtensa: fix ITLB/DTLB page protection flags (Max Filippov) b68c48f pixman: fix vnc tight png/jpeg support (Gerd Hoffmann)
36fd817 Update seabios toa810e4e72a0d42c7bc04eda57382f8e019add901(Gerd Hoffmann)
Quoted 10 lines
0bc5f4a seabios: update to
e8a76b0f225bba5ba9d63ab227e0a37b3beb1059(Gerd Hoffmann) 37e1428 vfio-pci: Don't usekvm_irqchip_in_kernel(Alex Williamson)
518799a target-mips: Fix incorrect shift for SHILO and SHILOV (Petar Jovanovic) 16c5fe4 target-mips: Fix incorrect code and test for INSV (Petar Jovanovic) f1a2195 migration: Fix madvise breakage if host and guest have different page sizes (David Gibson) 3b4fc1f Fix off-by-1 error in RAM migration code (David Gibson)
d67d95f Disable semaphores fallback code for OpenBSD (Brad Smith)
0a7ad69 Fix semaphores fallback code (Brad Smith)
I'd be great if you could push this repo ahead of time so that we can test it prior to the cut off and release. Honestly, when a patch is selected to be shipped in a stable release it'd be great if it was backported and pushed into that stable repo as that would allow for more testing of the stable series. I know this increases your maintenance burden but it would enable more distros to provide you more meaningful feedback on stable releases so that they are truly stable.
Signature · 1 line
Doug Goldstein