DM: Samples: Enable VxWorks as hard-rt VM

This patch adds --lapic_pt option to launch VxWorks as hard-rt VM.

Tracked-On: #3069
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
Kaige Fu 2019-06-13 09:24:07 +00:00 committed by wenlingz
parent 9960ff98c5
commit 22f24c229b
1 changed files with 6 additions and 10 deletions

View File

@ -16,20 +16,16 @@ fi
mem_size=2048M
# Note:
# Here we just launch VxWorks as a normal vm without lapic_pt. If you want try it
# with lapic_pt, you should add the following options and make sure the front-end virtio-console
# driver use polling mode (This feature is not supported by VxWorks offically now and should
# implement it by youself).
#
# --virtio_poll 1000000 \
# --s 2, virtio-console,@pty:pty_port \
#
# Once the front-end polling mode virtio-console get supported by VxWorks offically, we will
# add the lapic_pt option.
# For RTVM with lapic_pt, we only support virtio devices with polling mode enabled for both
# front-end and back-end. The virtio devices with polling mode are not supported by VxWorks
# offically now and we are working on upstream the front-end drivers.
acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
-s 5,virtio-console,@pty:pty_port \
-s 3,virtio-blk,./VxWorks.img \
--virtio_poll 1000000 \
--ovmf ./OVMF.fd \
--lapic_pt \
$vm_name
}