Hu Jia Yi
2008-Feb-28 03:25 UTC
[Xen-devel] A question on vmx loader in xen - how and when rombios is loaded into memory
A "main" function is defined in Xen-3.1.0-source/tools/firmware/hvmloader/hvmloader.c. In this main function, rombios, vgabios and vmxassist are copied to specified address, with following commands memcpy((void *)ROMBIOS_PHYSICAL_ADDRESS, rombios, rombios_sz); ... memcpy((void *)ETHERBOOT_PHYSICAL_ADDRESS, etherboot, sizeof(etherboot)); .... But after searching the whole directory "firmware", I don''t know how and when rombios, vgabios and vmxassist have been loaded to the memory from the disk before calling "memcpy". Could anybody help me on this? Best regards, Hu Jia Yi Ext: 20430 Tel: 65-67510430 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2008-Feb-28 03:42 UTC
RE: [Xen-devel] A question on vmx loader in xen - how and when rombiosis loaded into memory
> how and when rombios, vgabios and vmxassist have been loaded to the memory from the disk before calling “memcpy”.They are statically compiled into hvmloader in the way of C array and are loaded with hvmloader. Please step into the directory hvmloader/ and search for "roms.h" in Makefile. -- Dexuan ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Hu Jia Yi Sent: 2008年2月28日 11:26 To: xen-devel@lists.xensource.com Subject: [Xen-devel] A question on vmx loader in xen - how and when rombiosis loaded into memory A “main” function is defined in Xen-3.1.0-source/tools/firmware/hvmloader/hvmloader.c. In this main function, rombios, vgabios and vmxassist are copied to specified address, with following commands memcpy((void *)ROMBIOS_PHYSICAL_ADDRESS, rombios, rombios_sz); … memcpy((void *)ETHERBOOT_PHYSICAL_ADDRESS, etherboot, sizeof(etherboot)); …. But after searching the whole directory “firmware”, I don’t know how and when rombios, vgabios and vmxassist have been loaded to the memory from the disk before calling “memcpy”. Could anybody help me on this? Best regards, Hu Jia Yi Ext: 20430 Tel: 65-67510430 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparently Analagous Threads
- RE: A question on vmx loader in xen - how and when rombiosis loaded into memory
- RE: Installing Redhat 7,3 with hvm
- [PATCH] Replace bios_relocate hook with bios_load hook in hvmloader
- [PATCH] hvmloader: fix SeaBIOS interface
- Xen 3.2 and Big Real Mode support?