File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ int32_t init_vm_boot_info(struct acrn_vm *vm)
49
49
vm -> sw .kernel_info .kernel_src_addr = hpa2hva ((uint64_t )mods [0 ].mm_mod_start );
50
50
vm -> sw .kernel_info .kernel_size = mods [0 ].mm_mod_end - mods [0 ].mm_mod_start ;
51
51
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 );
54
54
vm -> sw .linux_info .bootargs_load_addr = (void * )(vm_config -> memory .size - 8 * 1024UL );
55
55
clac ();
56
56
ret = 0 ;
Original file line number Diff line number Diff line change @@ -217,7 +217,6 @@ struct acrn_vm_config {
217
217
218
218
#ifdef CONFIG_PARTITION_MODE
219
219
bool vm_vuart ;
220
- const char * bootargs ;
221
220
struct vpci_vdev_array * vpci_vdev_array ;
222
221
bool lapic_pt ;
223
222
#endif
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ struct vm_config_arraies vm_config_partition = {
146
146
.memory .start_hpa = 0x100000000UL ,
147
147
.memory .size = 0x20000000UL , /* uses contiguous memory from host */
148
148
.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 \
150
150
console=ttyS2 no_timer_check ignore_loglevel log_buf_len=16M \
151
151
consoleblank=0 tsc=reliable xapic_phys" ,
152
152
.vpci_vdev_array = & vpci_vdev_array1 ,
@@ -158,7 +158,7 @@ struct vm_config_arraies vm_config_partition = {
158
158
.memory .start_hpa = 0x120000000UL ,
159
159
.memory .size = 0x20000000UL , /* uses contiguous memory from host */
160
160
.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 \
162
162
console=ttyS2 no_timer_check ignore_loglevel log_buf_len=16M \
163
163
consoleblank=0 tsc=reliable xapic_phys" ,
164
164
.vpci_vdev_array = & vpci_vdev_array2 ,
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ struct vm_config_arraies vm_config_partition = {
180
180
.memory .start_hpa = 0x100000000UL ,
181
181
.memory .size = 0x80000000UL , /* uses contiguous memory from host */
182
182
.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 " \
184
184
"console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M " \
185
185
"consoleblank=0 tsc=reliable xapic_phys apic_debug" ,
186
186
.vpci_vdev_array = & vpci_vdev_array1 ,
@@ -193,7 +193,7 @@ struct vm_config_arraies vm_config_partition = {
193
193
.memory .start_hpa = 0x180000000UL ,
194
194
.memory .size = 0x80000000UL , /* uses contiguous memory from host */
195
195
.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 " \
197
197
"console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M " \
198
198
"consoleblank=0 tsc=reliable xapic_phys apic_debug" ,
199
199
.vpci_vdev_array = & vpci_vdev_array2 ,
You can’t perform that action at this time.
0 commit comments