Skip to content

Commit 68aa718

Browse files
jsun26intelEddie Dong
authored andcommitted
HV: replace bootargs config with acrn_vm_os_config
The member of bootargs in acrn_vm_config will be replaced by acrn_vm_os_config struct. Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 23f8e5e commit 68aa718

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

hypervisor/boot/sbl/multiboot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ int32_t init_vm_boot_info(struct acrn_vm *vm)
4949
vm->sw.kernel_info.kernel_src_addr = hpa2hva((uint64_t)mods[0].mm_mod_start);
5050
vm->sw.kernel_info.kernel_size = mods[0].mm_mod_end - mods[0].mm_mod_start;
5151
vm->sw.kernel_info.kernel_load_addr = (void *)(16 * 1024 * 1024UL);
52-
vm->sw.linux_info.bootargs_src_addr = (void *)vm_config->bootargs;
53-
vm->sw.linux_info.bootargs_size = strnlen_s(vm_config->bootargs, MEM_2K);
52+
vm->sw.linux_info.bootargs_src_addr = (void *)vm_config->os_config.bootargs;
53+
vm->sw.linux_info.bootargs_size = strnlen_s(vm_config->os_config.bootargs, MEM_2K);
5454
vm->sw.linux_info.bootargs_load_addr = (void *)(vm_config->memory.size - 8*1024UL);
5555
clac();
5656
ret = 0;

hypervisor/include/arch/x86/guest/vm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ struct acrn_vm_config {
217217

218218
#ifdef CONFIG_PARTITION_MODE
219219
bool vm_vuart;
220-
const char *bootargs;
221220
struct vpci_vdev_array *vpci_vdev_array;
222221
bool lapic_pt;
223222
#endif

hypervisor/partition/apl-mrb/vm_description.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ struct vm_config_arraies vm_config_partition = {
146146
.memory.start_hpa = 0x100000000UL,
147147
.memory.size = 0x20000000UL, /* uses contiguous memory from host */
148148
.vm_vuart = true,
149-
.bootargs = "root=/dev/sda3 rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
149+
.os_config.bootargs = "root=/dev/sda3 rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
150150
console=ttyS2 no_timer_check ignore_loglevel log_buf_len=16M \
151151
consoleblank=0 tsc=reliable xapic_phys",
152152
.vpci_vdev_array = &vpci_vdev_array1,
@@ -158,7 +158,7 @@ struct vm_config_arraies vm_config_partition = {
158158
.memory.start_hpa = 0x120000000UL,
159159
.memory.size = 0x20000000UL, /* uses contiguous memory from host */
160160
.vm_vuart = true,
161-
.bootargs = "root=/dev/sda3 rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
161+
.os_config.bootargs = "root=/dev/sda3 rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
162162
console=ttyS2 no_timer_check ignore_loglevel log_buf_len=16M \
163163
consoleblank=0 tsc=reliable xapic_phys",
164164
.vpci_vdev_array = &vpci_vdev_array2,

hypervisor/partition/dnv-cb2/vm_description.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ struct vm_config_arraies vm_config_partition = {
180180
.memory.start_hpa = 0x100000000UL,
181181
.memory.size = 0x80000000UL, /* uses contiguous memory from host */
182182
.vm_vuart = true,
183-
.bootargs = "root=/dev/sda rw rootwait noxsave maxcpus=4 nohpet console=hvc0 " \
183+
.os_config.bootargs = "root=/dev/sda rw rootwait noxsave maxcpus=4 nohpet console=hvc0 " \
184184
"console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M "\
185185
"consoleblank=0 tsc=reliable xapic_phys apic_debug",
186186
.vpci_vdev_array = &vpci_vdev_array1,
@@ -193,7 +193,7 @@ struct vm_config_arraies vm_config_partition = {
193193
.memory.start_hpa = 0x180000000UL,
194194
.memory.size = 0x80000000UL, /* uses contiguous memory from host */
195195
.vm_vuart = true,
196-
.bootargs = "root=/dev/sda2 rw rootwait noxsave maxcpus=4 nohpet console=hvc0 "\
196+
.os_config.bootargs = "root=/dev/sda2 rw rootwait noxsave maxcpus=4 nohpet console=hvc0 "\
197197
"console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M "\
198198
"consoleblank=0 tsc=reliable xapic_phys apic_debug",
199199
.vpci_vdev_array = &vpci_vdev_array2,

0 commit comments

Comments
 (0)