qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 04a8f7: xen/hvm: correct reporting of modifie


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 04a8f7: xen/hvm: correct reporting of modified memory unde...
Date: Fri, 01 Jun 2018 03:27:30 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 04a8f72e877b9a912ffd7afa84209909577d1d96
      
https://github.com/qemu/qemu/commit/04a8f72e877b9a912ffd7afa84209909577d1d96
  Author: Igor Druzhinin <address@hidden>
  Date:   2018-05-31 (Thu, 31 May 2018)

  Changed paths:
    M hw/i386/xen/xen-hvm.c
    M hw/i386/xen/xen-mapcache.c
    M include/sysemu/xen-mapcache.h

  Log Message:
  -----------
  xen/hvm: correct reporting of modified memory under physmap during migration

When global_log_dirty is enabled VRAM modification tracking never
worked correctly. The address that is passed to xen_hvm_modified_memory()
is not the effective PFN but RAM block address which is not the same
for VRAM.

We need to make a translation for this address into PFN using
physmap. Since there is no way to access physmap properly inside
xen_hvm_modified_memory() let's make it a global structure.

Signed-off-by: Igor Druzhinin <address@hidden>
Acked-by: Anthony PERARD <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: d3c49ebbe26b48615e14b8baa88a59cd33761ea6
      
https://github.com/qemu/qemu/commit/d3c49ebbe26b48615e14b8baa88a59cd33761ea6
  Author: Paul Durrant <address@hidden>
  Date:   2018-05-31 (Thu, 31 May 2018)

  Changed paths:
    M configure
    M hw/i386/xen/trace-events
    M hw/i386/xen/xen-hvm.c
    M include/hw/xen/xen_common.h

  Log Message:
  -----------
  xen-hvm: try to use xenforeignmemory_map_resource() to map ioreq pages

Xen 4.11 has a new API to directly map guest resources. Among the resources
that can be mapped using this API are ioreq pages.

This patch modifies QEMU to attempt to use the new API should it exist,
falling back to the previous mechanism if it is unavailable.

Signed-off-by: Paul Durrant <address@hidden>
Reviewed-by: Anthony PERARD <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: dfb6578d69d60e464be36dafed9741dcfd73d2cf
      
https://github.com/qemu/qemu/commit/dfb6578d69d60e464be36dafed9741dcfd73d2cf
  Author: Paul Durrant <address@hidden>
  Date:   2018-05-31 (Thu, 31 May 2018)

  Changed paths:
    M hw/i386/xen/trace-events
    M hw/i386/xen/xen-hvm.c

  Log Message:
  -----------
  xen-hvm: stop faking I/O to access PCI config space

This patch removes the current hackery where IOREQ_TYPE_PCI_CONFIG
requests are handled by faking PIO to 0xcf8 and 0xcfc and replaces it
with direct calls to pci_host_config_read/write_common().
Doing so necessitates mapping BDFs to PCIDevices but maintaining a simple
QLIST in xen_device_realize/unrealize() will suffice.

NOTE: whilst config space accesses are currently limited to
      PCI_CONFIG_SPACE_SIZE, this patch paves the way to increasing the
      limit to PCIE_CONFIG_SPACE_SIZE when Xen gains the ability to
      emulate MCFG table accesses.

Signed-off-by: Paul Durrant <address@hidden>
Reviewed-by: Anthony PERARD <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: 14fc618461c2756a3f0b16bf6af198c5d7731137
      
https://github.com/qemu/qemu/commit/14fc618461c2756a3f0b16bf6af198c5d7731137
  Author: Peter Maydell <address@hidden>
  Date:   2018-06-01 (Fri, 01 Jun 2018)

  Changed paths:
    M configure
    M hw/i386/xen/trace-events
    M hw/i386/xen/xen-hvm.c
    M hw/i386/xen/xen-mapcache.c
    M include/hw/xen/xen_common.h
    M include/sysemu/xen-mapcache.h

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

Xen 2018/05/31

# gpg: Signature made Thu 31 May 2018 20:05:49 BST
# gpg:                using RSA key 894F8F4870E1AE90
# 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-http/tags/xen-20180531-tag:
  xen-hvm: stop faking I/O to access PCI config space
  xen-hvm: try to use xenforeignmemory_map_resource() to map ioreq pages
  xen/hvm: correct reporting of modified memory under physmap during migration

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


Compare: https://github.com/qemu/qemu/compare/c181ddaa1768...14fc618461c2
      **NOTE:** This service been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.

reply via email to

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