All of lore.kernel.org
 help / color / mirror / Atom feed
* BUG: fbback doesn't unmap pages on disconnect
@ 2013-12-18 15:14 Vladimir 'φ-coder/phcoder' Serbinenko
  2013-12-20 10:03 ` George Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-12-18 15:14 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 707 bytes --]

./tools/qemu-xen-traditional-dir-remote/hw/xenfb.c:

    /*
     * FIXME: qemu can't un-init gfx display (yet?).
     *   Replacing the framebuffer with anonymous shared memory
     *   instead.  This releases the guest pages and keeps qemu happy.
     */
    fb->pixels = mmap(fb->pixels, fb->fbpages * XC_PAGE_SIZE,
                      PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON,
                      -1, 0);
Well it doesn't unmap. There is no unmap on this code path. And since
the mapping is read-write the pages which are supposed to be released,
are now not usable for holding paging table anymore. Can anyone suggest
a workaround to munmap those pages? Could this bug be fixed?


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG: fbback doesn't unmap pages on disconnect
  2013-12-18 15:14 BUG: fbback doesn't unmap pages on disconnect Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-12-20 10:03 ` George Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: George Dunlap @ 2013-12-20 10:03 UTC (permalink / raw)
  To: Vladimir 'φ-coder/phcoder' Serbinenko
  Cc: Anthony PERARD, Stefano Stabellini, Ian Jackson,
	xen-devel@lists.xen.org

CC'ing the relevant maintainers...

On Wed, Dec 18, 2013 at 3:14 PM, Vladimir 'φ-coder/phcoder' Serbinenko
<phcoder@gmail.com> wrote:
> ./tools/qemu-xen-traditional-dir-remote/hw/xenfb.c:
>
>     /*
>      * FIXME: qemu can't un-init gfx display (yet?).
>      *   Replacing the framebuffer with anonymous shared memory
>      *   instead.  This releases the guest pages and keeps qemu happy.
>      */
>     fb->pixels = mmap(fb->pixels, fb->fbpages * XC_PAGE_SIZE,
>                       PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON,
>                       -1, 0);
> Well it doesn't unmap. There is no unmap on this code path. And since
> the mapping is read-write the pages which are supposed to be released,
> are now not usable for holding paging table anymore. Can anyone suggest
> a workaround to munmap those pages? Could this bug be fixed?
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-20 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 15:14 BUG: fbback doesn't unmap pages on disconnect Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-20 10:03 ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.