Skip to content

Commit 1902d72

Browse files
fyin1lijinxia
authored andcommitted
hv: fix partition mode no console issue.
Fix the issue that kernel console doesn't work with partition mode. Tracked-On: #1756 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
1 parent 3cbaf02 commit 1902d72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hypervisor/partition/vm_description.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ struct vm_description_array vm_desc_partition = {
163163
.start_hpa = 0x100000000UL,
164164
.mem_size = 0x20000000UL, /* uses contiguous memory from host */
165165
.vm_vuart = true,
166-
.bootargs = "root=/dev/sda rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
167-
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
166+
.bootargs = "root=/dev/sda3 rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
167+
console=ttyS2 no_timer_check ignore_loglevel log_buf_len=16M \
168168
consoleblank=0 tsc=reliable xapic_phys",
169169
.vpci_vdev_array = &vpci_vdev_array1,
170170
.mptable = &mptable_vm1,
@@ -178,8 +178,8 @@ struct vm_description_array vm_desc_partition = {
178178
.start_hpa = 0x120000000UL,
179179
.mem_size = 0x20000000UL, /* uses contiguous memory from host */
180180
.vm_vuart = true,
181-
.bootargs = "root=/dev/sda rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
182-
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
181+
.bootargs = "root=/dev/sda3 rw rootwait noxsave maxcpus=2 nohpet console=hvc0 \
182+
console=ttyS2 no_timer_check ignore_loglevel log_buf_len=16M \
183183
consoleblank=0 tsc=reliable xapic_phys",
184184
.vpci_vdev_array = &vpci_vdev_array2,
185185
.mptable = &mptable_vm2,

0 commit comments

Comments
 (0)