Branch: refs/heads/coverity_scan
  Home:   https://github.com/siemens/jailhouse
  Commit: 49de7b7e47e6a997941c1f45453c249c31537a49
      
https://github.com/siemens/jailhouse/commit/49de7b7e47e6a997941c1f45453c249c31537a49
  Author: Jan Kiszka <[email protected]>
  Date:   2019-04-28 (Sun, 28 Apr 2019)

  Changed paths:
    M hypervisor/pci.c

  Log Message:
  -----------
  pci: Refactor loops in pci_prepare_handover and pci_config_commit

No functional change, just reduction of indention which will also be
beneficial for upcoming changes.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: a20e9b56245d64efd9d31ab442132bc9945517e7
      
https://github.com/siemens/jailhouse/commit/a20e9b56245d64efd9d31ab442132bc9945517e7
  Author: Jan Kiszka <[email protected]>
  Date:   2019-04-28 (Sun, 28 Apr 2019)

  Changed paths:
    M hypervisor/pci.c

  Log Message:
  -----------
  pci: Only call pci_suppress_msix() for root cell

It is harmless to call pci_suppress_msix(..., false) it also for
non-root cells because it just writes back the config space register
content. But it is unneeded and, thus, potentially confusing.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 699f4de9a0dd844d981a0ff869b3d725511eb54c
      
https://github.com/siemens/jailhouse/commit/699f4de9a0dd844d981a0ff869b3d725511eb54c
  Author: Jan Kiszka <[email protected]>
  Date:   2019-04-28 (Sun, 28 Apr 2019)

  Changed paths:
    M hypervisor/arch/arm-common/pci.c
    M hypervisor/arch/x86/pci.c
    M hypervisor/include/jailhouse/pci.h
    M hypervisor/pci.c

  Log Message:
  -----------
  pci: Call arch_pci_suppress_msi also on re-enabling

This will allow to move the injection to the end of the suppression
phase.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 97c68dff145689d0a14b61e8ae4132bd0696917c
      
https://github.com/siemens/jailhouse/commit/97c68dff145689d0a14b61e8ae4132bd0696917c
  Author: Jan Kiszka <[email protected]>
  Date:   2019-04-28 (Sun, 28 Apr 2019)

  Changed paths:
    M hypervisor/arch/x86/pci.c
    M hypervisor/include/jailhouse/pci.h

  Log Message:
  -----------
  pci: Move MSI vector injection to the end of suppression

This fixes a long-pending issue that actually prevented the injection
when interrupt remapping was in use in the root cell on x86: We are
unable to translate the remapping entry into a physical message before
the 2nd level page table for the root is fully populated. This happens
in init_late, thus after the suppression request. The result is that we
only read invalid messages from the redirection table and did nothing.

By moving the injection to the config-commit phase, we have that full
access to the guest memory and can build the correct message.

Fixes: b50614282cff ("core: Virtualize legacy MSI for interrupt remapping 
support")
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: cbbb49ef51e6621ecb85fd0af1655ad584e30021
      
https://github.com/siemens/jailhouse/commit/cbbb49ef51e6621ecb85fd0af1655ad584e30021
  Author: Jan Kiszka <[email protected]>
  Date:   2019-04-28 (Sun, 28 Apr 2019)

  Changed paths:
    M hypervisor/arch/x86/ioapic.c

  Log Message:
  -----------
  x86: ioapic: Move edge interrupt injection at the end of suppression

Analogously to MSI: When interrupt remapping is enabled in Linux, we
cannot evaluate the remapping table before the config-commit phase, thus
will never inject a message when trying that earlier.

Fixes: f651754c72e3 ("x86: Virtualize IOAPIC redir table for interrupt 
remapping support")
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: d235bde2a4738b4cddb1df926a39b8a1e11c0acc
      
https://github.com/siemens/jailhouse/commit/d235bde2a4738b4cddb1df926a39b8a1e11c0acc
  Author: Jan Kiszka <[email protected]>
  Date:   2019-04-28 (Sun, 28 Apr 2019)

  Changed paths:
    M hypervisor/arch/x86/ioapic.c

  Log Message:
  -----------
  x86: ioapic: Simplify ioapic_mask_cell_pins

After ioapic_get_or_add_phys is called, the shadow_redir_table is
populated with the guest register content. As ioapic_mask_cell_pins is
only called after that function, we can read the mask state from the
shadow table and safe a register access.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: b94228ca3ac8b41f4389221f1c31dc4d6092c83f
      
https://github.com/siemens/jailhouse/commit/b94228ca3ac8b41f4389221f1c31dc4d6092c83f
  Author: Jan Kiszka <[email protected]>
  Date:   2019-05-05 (Sun, 05 May 2019)

  Changed paths:
    M inmates/tests/x86/mmio-access.c

  Log Message:
  -----------
  inmates: Fix RIP-relative test mmio-access

Avoid using the cmdline as basis which can move around - as in
91332fa77903. Also makes the thing more readable.

Reported-by: Ralf Ramsauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>


Compare: 
https://github.com/siemens/jailhouse/compare/29796b562f14...b94228ca3ac8

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to