qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] d57f25: hw/display/ramfb: fix guest memory un


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] d57f25: hw/display/ramfb: fix guest memory un-mapping
Date: Fri, 24 May 2019 11:47:37 +0000 (UTC)

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d57f252addefa0a66db554038b063fd2331bb269
      
https://github.com/qemu/qemu/commit/d57f252addefa0a66db554038b063fd2331bb269
  Author: Hou Qiming <address@hidden>
  Date:   2019-05-24 (Fri, 24 May 2019)

  Changed paths:
    M hw/display/ramfb.c

  Log Message:
  -----------
  hw/display/ramfb: fix guest memory un-mapping

Pulled back the `qemu_create_displaysurface_guestmem` function to create
the display surface so that the guest memory gets properly unmapped.

Signed-off-by: HOU Qiming <address@hidden>
Signed-off-by: Marcel Apfelbaum <address@hidden>
Message-id: address@hidden
[rename the new functions and use QEMU coding style]
Signed-off-by: Marcel Apfelbaum <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: a9e0cb67b7f4c485755659f9b764c38b5f970de4
      
https://github.com/qemu/qemu/commit/a9e0cb67b7f4c485755659f9b764c38b5f970de4
  Author: Hou Qiming <address@hidden>
  Date:   2019-05-24 (Fri, 24 May 2019)

  Changed paths:
    M hw/display/ramfb.c

  Log Message:
  -----------
  hw/display/ramfb: lock guest resolution after it's set

Only allow one resolution change per guest boot, which prevents a
crash when the guest writes garbage to the configuration space (e.g.
when rebooting).

Signed-off-by: HOU Qiming <address@hidden>
Signed-off-by: Marcel Apfelbaum <address@hidden>
Message-id: address@hidden
[fixed malformed patch]
Signed-off-by: Marcel Apfelbaum <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: f79081b4b71b72640bedd40a7cd76f864c8287f1
      
https://github.com/qemu/qemu/commit/f79081b4b71b72640bedd40a7cd76f864c8287f1
  Author: Hou Qiming <address@hidden>
  Date:   2019-05-24 (Fri, 24 May 2019)

  Changed paths:
    M hw/display/ramfb-standalone.c
    M hw/display/ramfb.c
    M hw/vfio/display.c
    M include/hw/display/ramfb.h
    M stubs/ramfb.c

  Log Message:
  -----------
  hw/display/ramfb: initialize fw-config space with xres/ yres

If xres / yres were specified in QEMU command line, write them as an initial
resolution to the fw-config space on guest reset, which a later BIOS / OVMF
patch can take advantage of.

Signed-off-by: HOU Qiming <address@hidden>
Signed-off-by: Marcel Apfelbaum <address@hidden>
Message-id: address@hidden
[fixed malformed patch]
Signed-off-by: Marcel Apfelbaum <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 40575757e1ef9fa8e34c2320fb56a7dffd92efcc
      
https://github.com/qemu/qemu/commit/40575757e1ef9fa8e34c2320fb56a7dffd92efcc
  Author: Peter Maydell <address@hidden>
  Date:   2019-05-24 (Fri, 24 May 2019)

  Changed paths:
    M hw/display/ramfb-standalone.c
    M hw/display/ramfb.c
    M hw/vfio/display.c
    M include/hw/display/ramfb.h
    M stubs/ramfb.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/kraxel/tags/vga-20190524-pull-request' 
into staging

ramfb: misc improvements.

# gpg: Signature made Fri 24 May 2019 09:56:59 BST
# gpg:                using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>" [full]
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/vga-20190524-pull-request:
  hw/display/ramfb: initialize fw-config space with xres/ yres
  hw/display/ramfb: lock guest resolution after it's set
  hw/display/ramfb: fix guest memory un-mapping

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


Compare: https://github.com/qemu/qemu/compare/636011255dec...40575757e1ef



reply via email to

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