qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] a3fd78: xen-disk: use g_new0 to fix build


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] a3fd78: xen-disk: use g_new0 to fix build
Date: Thu, 21 Sep 2017 02:55:15 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: a3fd781f653db4dc76635715207c9029208634bd
      
https://github.com/qemu/qemu/commit/a3fd781f653db4dc76635715207c9029208634bd
  Author: Olaf Hering <address@hidden>
  Date:   2017-09-20 (Wed, 20 Sep 2017)

  Changed paths:
    M hw/block/xen_disk.c

  Log Message:
  -----------
  xen-disk: use g_new0 to fix build

g_malloc0_n is available since glib-2.24. To allow build with older glib
versions use the generic g_new0, which is already used in many other
places in the code.

Fixes commit 3284fad728 ("xen-disk: add support for multi-page shared rings")

Signed-off-by: Olaf Hering <address@hidden>
Reviewed-by: Stefano Stabellini <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: a8036336609d2e184fc3543a4c439c0ba7d7f3a2
      
https://github.com/qemu/qemu/commit/a8036336609d2e184fc3543a4c439c0ba7d7f3a2
  Author: Roger Pau Monne <address@hidden>
  Date:   2017-09-20 (Wed, 20 Sep 2017)

  Changed paths:
    M hw/xen/xen_pt.h
    M hw/xen/xen_pt_config_init.c
    M hw/xen/xen_pt_msi.c

  Log Message:
  -----------
  xen/pt: allow QEMU to request MSI unmasking at bind time

When a MSI interrupt is bound to a guest using
xc_domain_update_msi_irq (XEN_DOMCTL_bind_pt_irq) the interrupt is
left masked by default.

This causes problems with guests that first configure interrupts and
clean the per-entry MSIX table mask bit and afterwards enable MSIX
globally. In such scenario the Xen internal msixtbl handlers would not
detect the unmasking of MSIX entries because vectors are not yet
registered since MSIX is not enabled, and vectors would be left
masked.

Introduce a new flag in the gflags field to signal Xen whether a MSI
interrupt should be unmasked after being bound.

This also requires to track the mask register for MSI interrupts, so
QEMU can also notify to Xen whether the MSI interrupt should be bound
masked or unmasked

Signed-off-by: Roger Pau Monné <address@hidden>
Reviewed-by: Jan Beulich <address@hidden>
Reported-by: Andreas Kinzler <address@hidden>
Reviewed-by: Stefano Stabellini <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: 211ad3b412fe1b8edcb7db0bb97e766a39b2be14
      
https://github.com/qemu/qemu/commit/211ad3b412fe1b8edcb7db0bb97e766a39b2be14
  Author: Peter Maydell <address@hidden>
  Date:   2017-09-21 (Thu, 21 Sep 2017)

  Changed paths:
    M hw/block/xen_disk.c
    M hw/xen/xen_pt.h
    M hw/xen/xen_pt_config_init.c
    M hw/xen/xen_pt_msi.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20170920-tag' into 
staging

Xen 2017/09/20

# gpg: Signature made Thu 21 Sep 2017 03:20:02 BST
# gpg:                using RSA key 0x894F8F4870E1AE90
# gpg: Good signature from "Stefano Stabellini <address@hidden>"
# gpg:                 aka "Stefano Stabellini <address@hidden>"
# Primary key fingerprint: D04E 33AB A51F 67BA 07D3  0AEA 894F 8F48 70E1 AE90

* remotes/sstabellini/tags/xen-20170920-tag:
  xen/pt: allow QEMU to request MSI unmasking at bind time
  xen-disk: use g_new0 to fix build

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/b62b7ed0fc9c...211ad3b412fe

reply via email to

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