Date: Wed, 28 Jul 2021 15:27:54 GMT From: =?utf-8?Q?Roger Pau Monn=C3=A9?= <royger@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: e627e25d761f - main - xen/xenpv: remove low memory limit for non-x86 Message-ID: <202107281527.16SFRsUZ087983@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=e627e25d761f8a11e9e5881e804fae5793404947 commit e627e25d761f8a11e9e5881e804fae5793404947 Author: Elliott Mitchell <ehem+freebsd@m5p.com> AuthorDate: 2021-04-06 09:28:38 +0000 Commit: Roger Pau Monné <royger@FreeBSD.org> CommitDate: 2021-07-28 15:27:03 +0000 xen/xenpv: remove low memory limit for non-x86 For embedded devices reserved addresses will be known in advance. More recently added devices will also likely be correctly updated. As a result using any available address is reasonable on non-x86. Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D29304 --- sys/dev/xen/bus/xenpv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/xen/bus/xenpv.c b/sys/dev/xen/bus/xenpv.c index 080c82c73f08..42f2c88a2885 100644 --- a/sys/dev/xen/bus/xenpv.c +++ b/sys/dev/xen/bus/xenpv.c @@ -55,13 +55,17 @@ __FBSDID("$FreeBSD$"); * * Since this is not possible on i386 just use any available memory * chunk above 1MB and hope we don't clash with anything else. + * + * Other architectures better document MMIO regions and drivers more + * reliably reserve them. As such, allow using any unpopulated memory + * region. */ #ifdef __amd64__ #define LOW_MEM_LIMIT 0x100000000ul #elif defined(__i386__) #define LOW_MEM_LIMIT 0x100000ul #else -#error "Unsupported architecture" +#define LOW_MEM_LIMIT 0 #endif static devclass_t xenpv_devclass;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107281527.16SFRsUZ087983>