Re: [Qemu-devel] [PATCH v2 5/5] x86: allow load initrd below 4G for recent linux

2018-12-02 Thread Li Zhijian
On 11/30/2018 10:53 PM, Michael S. Tsirkin wrote: On Wed, Nov 21, 2018 at 10:06:06AM +0800, Li Zhijian wrote: a new field xloadflags was added to recent x86 linux, and BIT 1: XLF_CAN_BE_LOADED_ABOVE_4G is used to tell bootload that where initrd can be loaded saftly. safely Current QEMU alwa

Re: [Qemu-devel] [PATCH v2 5/5] x86: allow load initrd below 4G for recent linux

2018-11-30 Thread Michael S. Tsirkin
On Wed, Nov 21, 2018 at 10:06:06AM +0800, Li Zhijian wrote: > a new field xloadflags was added to recent x86 linux, and BIT 1: > XLF_CAN_BE_LOADED_ABOVE_4G is used to tell bootload that where initrd can be > loaded saftly. safely > > Current QEMU always load loads > initrd below below_4g_mem_s

[Qemu-devel] [PATCH v2 5/5] x86: allow load initrd below 4G for recent linux

2018-11-20 Thread Li Zhijian
a new field xloadflags was added to recent x86 linux, and BIT 1: XLF_CAN_BE_LOADED_ABOVE_4G is used to tell bootload that where initrd can be loaded saftly. Current QEMU always load initrd below below_4g_mem_size which always less than 4G, so here limit initrd_max to 4G - 1 simply is enough if thi