Date: Mon, 26 Feb 2018 22:57:03 -0800 From: Peter Grehan <grehan@freebsd.org> To: Fabian Freyer <fabian.freyer@physik.tu-berlin.de> Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve and mmap(2) Message-ID: <aec181af-5b26-6d05-ddfd-6996f24643c2@freebsd.org> In-Reply-To: <0001CF7F-66BC-451E-9C86-03C50471F23D@physik.tu-berlin.de> References: <0001CF7F-66BC-451E-9C86-03C50471F23D@physik.tu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Fabian, > Would be possible to use mmap(2) around libvmmapi to map a file > (MAP_PRIVATE) and or shared memory segments (MAP_SHARED) into guest > physical address space? It currently isn't - doing that will just insert the mappings into the user process's view, and not into guest address space. Bhyve currently uses a separate vmspace for guest address space. While this simplifies the EPT code internally, it also prevents direct manipulation of the address space using standard system calls. A possible solution to this would be to have the ability to apply address-space manipulation calls to an arbitrary address space - this was brought up in Linux a long while back: https://lwn.net/Articles/19047/ later, Peter.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aec181af-5b26-6d05-ddfd-6996f24643c2>