qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] fe680d: exec: Limit translation limiting in a


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] fe680d: exec: Limit translation limiting in address_space_...
Date: Wed, 07 May 2014 11:00:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: fe680d0dac85e0f2d6c3b53838c250f6e0b1f49b
      
https://github.com/qemu/qemu/commit/fe680d0dac85e0f2d6c3b53838c250f6e0b1f49b
  Author: Alexey Kardashevskiy <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M exec.c

  Log Message:
  -----------
  exec: Limit translation limiting in address_space_translate to xen

The address_space_translate() function cuts the returned plen (page size)
to hardcoded TARGET_PAGE_SIZE. This function can be used on pages bigger
than that so this limiting should not be used on such pages.

Since originally the limiting was introduced for XEN, we can safely
limit this piece of code to XEN. So does the patch.

Suggested-by: Paolo Bonzini <address@hidden>
Signed-off-by: Alexey Kardashevskiy <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: c976437c7dba9c7444fb41df45468968aaa326ad
      
https://github.com/qemu/qemu/commit/c976437c7dba9c7444fb41df45468968aaa326ad
  Author: Zhenzhong Duan <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

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

  Log Message:
  -----------
  qemu-xen: free all the pirqs for msi/msix when driver unload

Pirqs are not freed when driver unload, then new pirqs are allocated when
driver reload. This could exhaust pirqs if do it in a loop.

This patch fixes the bug by freeing pirqs when ENABLE bit is cleared in
msi/msix control reg.

There is also other way of fixing it such as reuse pirqs between driver reload,
but this way is better.
Xen-devel: http://marc.info/?l=xen-devel&m=136800120304275&w=2

Signed-off-by: Zhenzhong Duan <address@hidden>
Signed-off-by: Konrad Rzeszutek Wilk <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: d5fdb85e3d2c319603f87f3205689ed5659f621d
      
https://github.com/qemu/qemu/commit/d5fdb85e3d2c319603f87f3205689ed5659f621d
  Author: Wei Liu <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M hw/i386/Makefile.objs
    R hw/i386/xen_domainbuild.c
    R hw/i386/xen_domainbuild.h
    R hw/i386/xen_machine_pv.c
    A hw/xenpv/Makefile.objs
    A hw/xenpv/xen_domainbuild.c
    A hw/xenpv/xen_domainbuild.h
    A hw/xenpv/xen_machine_pv.c

  Log Message:
  -----------
  xen: move Xen PV machine files to hw/xenpv

Signed-off-by: Wei Liu <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: ad3f7e31bfc148135d93c176d1c9197933fa8344
      
https://github.com/qemu/qemu/commit/ad3f7e31bfc148135d93c176d1c9197933fa8344
  Author: Wei Liu <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M hw/i386/Makefile.objs
    A hw/i386/xen/Makefile.objs
    A hw/i386/xen/xen_apic.c
    A hw/i386/xen/xen_platform.c
    A hw/i386/xen/xen_pvdevice.c
    M hw/xen/Makefile.objs
    R hw/xen/xen_apic.c
    R hw/xen/xen_platform.c
    R hw/xen/xen_pvdevice.c

  Log Message:
  -----------
  xen: move Xen HVM files under hw/i386/xen

Signed-off-by: Wei Liu <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: 04b0de0ee83fe464487406064afe14de27decc24
      
https://github.com/qemu/qemu/commit/04b0de0ee83fe464487406064afe14de27decc24
  Author: Wei Liu <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M Makefile.target
    R xen-all.c
    A xen-common-stub.c
    A xen-common.c
    A xen-hvm-stub.c
    A xen-hvm.c
    R xen-stub.c

  Log Message:
  -----------
  xen: factor out common functions

So common functions used by both HVM and PV are factored out from
xen-all.c to xen-common.c.

Finally rename xen-all.c to xen-hvm.c, as those functions are only
useful to HVM guest.

Create *-stub files and modify Makefile.target to reflect the changes.

Signed-off-by: Wei Liu <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>


  Commit: 8b6bb0ad17ab776239ba2bfc99ff107ada01c506
      
https://github.com/qemu/qemu/commit/8b6bb0ad17ab776239ba2bfc99ff107ada01c506
  Author: Stefano Stabellini <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M xen-hvm.c

  Log Message:
  -----------
  pass an inclusive address range to xc_domain_pin_memory_cacheattr

xc_domain_pin_memory_cacheattr expects an inclusive address range:
adjust the parameters.

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


  Commit: f31352041bdde436c3f6d07e1525a42e48dec215
      
https://github.com/qemu/qemu/commit/f31352041bdde436c3f6d07e1525a42e48dec215
  Author: Olaf Hering <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M hw/block/xen_blkif.h
    M hw/block/xen_disk.c
    M include/hw/xen/xen_common.h

  Log Message:
  -----------
  xen_disk: add discard support

Implement discard support for xen_disk. It makes use of the existing
discard code in qemu.

The discard support is enabled unconditionally. The tool stack may
provide a property "discard-enable" in the backend node to optionally
disable discard support.  This is helpful in case the backing file was
intentionally created non-sparse to avoid fragmentation.

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


  Commit: 5894145a26afd29c077452f7e93981b797c912a5
      
https://github.com/qemu/qemu/commit/5894145a26afd29c077452f7e93981b797c912a5
  Author: Peter Maydell <address@hidden>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M Makefile.target
    M exec.c
    M hw/block/xen_blkif.h
    M hw/block/xen_disk.c
    M hw/i386/Makefile.objs
    A hw/i386/xen/Makefile.objs
    A hw/i386/xen/xen_apic.c
    A hw/i386/xen/xen_platform.c
    A hw/i386/xen/xen_pvdevice.c
    R hw/i386/xen_domainbuild.c
    R hw/i386/xen_domainbuild.h
    R hw/i386/xen_machine_pv.c
    M hw/xen/Makefile.objs
    R hw/xen/xen_apic.c
    R hw/xen/xen_platform.c
    M hw/xen/xen_pt_config_init.c
    M hw/xen/xen_pt_msi.c
    R hw/xen/xen_pvdevice.c
    A hw/xenpv/Makefile.objs
    A hw/xenpv/xen_domainbuild.c
    A hw/xenpv/xen_domainbuild.h
    A hw/xenpv/xen_machine_pv.c
    M include/hw/xen/xen_common.h
    R xen-all.c
    A xen-common-stub.c
    A xen-common.c
    A xen-hvm-stub.c
    A xen-hvm.c
    R xen-stub.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/sstabellini/xen-140507-2' into staging

* remotes/sstabellini/xen-140507-2:
  xen_disk: add discard support
  pass an inclusive address range to xc_domain_pin_memory_cacheattr
  xen: factor out common functions
  xen: move Xen HVM files under hw/i386/xen
  xen: move Xen PV machine files to hw/xenpv
  qemu-xen: free all the pirqs for msi/msix when driver unload
  exec: Limit translation limiting in address_space_translate to xen

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


Compare: https://github.com/qemu/qemu/compare/b18a990c3d5c...5894145a26af

reply via email to

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