mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
DM: add power off by vuart setting to launch script
1. for post-launch general VM, like LaaG, the vUART is emulated in DM, so the power off control channel is: acrn-dm:pty[master <-> salve] <--> acrn-dm:vUART <--> UOS:vUART 2. for RTVM, like RT-Linux, the vUART is emulated in hypervisor layer, so the control channel is: acrn-dm <--> SOS:/dev/ttyS1 <--> Hypervisor <--> UOS:vUART. So the settings in launch script are different. Tracked-On: #3564 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
eb5a57b780
commit
8578125fed
@@ -30,6 +30,11 @@ echo ${passthru_vpid["sata"]} > /sys/bus/pci/drivers/pci-stub/new_id
|
||||
echo ${passthru_bdf["sata"]} > /sys/bus/pci/devices/${passthru_bdf["sata"]}/driver/unbind
|
||||
echo ${passthru_bdf["sata"]} > /sys/bus/pci/drivers/pci-stub/bind
|
||||
|
||||
# for pm setting
|
||||
pm_channel="--pm_notify_channel uart "
|
||||
pm_by_vuart="--pm_by_vuart tty,/dev/ttyS1"
|
||||
|
||||
|
||||
/usr/bin/acrn-dm -A -m $mem_size -c $1 -s 0:0,hostbridge \
|
||||
-k /usr/lib/kernel/default-iot-lts2018-preempt-rt \
|
||||
--lapic_pt \
|
||||
@@ -37,6 +42,7 @@ echo ${passthru_bdf["sata"]} > /sys/bus/pci/drivers/pci-stub/bind
|
||||
--virtio_poll 1000000 \
|
||||
-s 2,passthru,0/17/0 \
|
||||
-s 3,virtio-console,@stdio:stdio_port \
|
||||
$pm_channel $pm_by_vuart \
|
||||
-B "root=/dev/sda3 rw rootwait maxcpus=$1 nohpet console=hvc0 \
|
||||
no_timer_check ignore_loglevel log_buf_len=16M \
|
||||
consoleblank=0 tsc=reliable x2apic_phys" hard_rtvm
|
||||
|
||||
Reference in New Issue
Block a user