summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/mem.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2013-02-22 00:46:32 +0000
committergrehan <grehan@FreeBSD.org>2013-02-22 00:46:32 +0000
commit8da5ddc4a58030c134944166ecf90768bc1e83f1 (patch)
tree1987663f3c62b9124ca19adad0e59ae4bcd24699 /usr.sbin/bhyve/mem.h
parent42a4b7d5738c859ed9112ca587bd601b9ea48c52 (diff)
downloadFreeBSD-src-8da5ddc4a58030c134944166ecf90768bc1e83f1.zip
FreeBSD-src-8da5ddc4a58030c134944166ecf90768bc1e83f1.tar.gz
Add the ability to have a 'fallback' search for memory ranges.
These set of ranges will be looked at if a standard memory range isn't found, and won't be installed in the cache. Use this to implement the memory behaviour of the PCI hole on x86 systems, where writes are ignored and reads always return -1. This allows breakpoints to be set when issuing a 'boot -d', which has the side effect of accessing the PCI hole when changing the PTE protection on kernel code, since the pmap layer hasn't been initialized (a bug, but present in existing FreeBSD releases so has to be handled). Reviewed by: neel Obtained from: NetApp
Diffstat (limited to 'usr.sbin/bhyve/mem.h')
-rw-r--r--usr.sbin/bhyve/mem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/mem.h b/usr.sbin/bhyve/mem.h
index 88fafe1..05e7508 100644
--- a/usr.sbin/bhyve/mem.h
+++ b/usr.sbin/bhyve/mem.h
@@ -53,5 +53,6 @@ void init_mem(void);
int emulate_mem(struct vmctx *, int vcpu, uint64_t paddr, struct vie *vie);
int register_mem(struct mem_range *memp);
+int register_mem_fallback(struct mem_range *memp);
#endif /* _MEM_H_ */
OpenPOWER on IntegriCloud