Skip to content
Snippets Groups Projects
  1. Mar 23, 2023
    • David Woodhouse's avatar
      accel/xen: Fix DM state change notification in dm_restrict mode · f75e4f22
      David Woodhouse authored
      
      When dm_restrict is set, QEMU isn't permitted to update the XenStore node
      to indicate its running status. Previously, the xs_write() call would fail
      but the failure was ignored.
      
      However, in refactoring to allow for emulated XenStore operations, a new
      call to xs_open() was added. That one didn't fail gracefully, causing a
      fatal error when running in dm_restrict mode.
      
      Partially revert the offending patch, removing the additional call to
      xs_open() because the global 'xenstore' variable is still available; it
      just needs to be used with qemu_xen_xs_write() now instead of directly
      with the xs_write() libxenstore function.
      
      Also make the whole thing conditional on !xen_domid_restrict. There's no
      point even registering the state change handler to attempt to update the
      XenStore node when we know it's destined to fail.
      
      Fixes: ba2a92db ("hw/xen: Add xenstore operations to allow redirection to internal emulation")
      Reported-by: default avatarJason Andryuk <jandryuk@gmail.com>
      Co-developed-by: default avatarJason Andryuk <jandryuk@gmail.com>
      Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
      Reviewed-by: default avatarPaul Durrant <paul@xen.org>
      Tested-by: default avatarJason Andryuk <jandryuk@gmail.com>
      Message-Id: <1f141995bb61af32c2867ef5559e253f39b0949c.camel@infradead.org>
      Signed-off-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
      f75e4f22
  2. Mar 07, 2023
  3. Mar 01, 2023
  4. Feb 27, 2023
  5. Mar 09, 2021
  6. Feb 05, 2021
  7. Oct 24, 2020
  8. Aug 21, 2020
  9. Aug 04, 2020
  10. Jun 12, 2020
    • Anthony PERARD's avatar
      xen: fix build without pci passthrough · acd0c941
      Anthony PERARD authored
      
      Xen PCI passthrough support may not be available and thus the global
      variable "has_igd_gfx_passthru" might be compiled out. Common code
      should not access it in that case.
      
      Unfortunately, we can't use CONFIG_XEN_PCI_PASSTHROUGH directly in
      xen-common.c so this patch instead move access to the
      has_igd_gfx_passthru variable via function and those functions are
      also implemented as stubs. The stubs will be used when QEMU is built
      without passthrough support.
      
      Now, when one will want to enable igd-passthru via the -machine
      property, they will get an error message if QEMU is built without
      passthrough support.
      
      Fixes: 46472d82 ('xen: convert "-machine igd-passthru" to an accelerator property')
      Reported-by: default avatarRoger Pau Monné <roger.pau@citrix.com>
      Signed-off-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
      Message-Id: <20200603160442.3151170-1-anthony.perard@citrix.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      acd0c941
  11. Jun 10, 2020
Loading