From 22f24c229b48a98e70572e7e25b1de2077fbd198 Mon Sep 17 00:00:00 2001 From: Kaige Fu Date: Thu, 13 Jun 2019 09:24:07 +0000 Subject: [PATCH] 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 --- devicemodel/samples/nuc/launch_vxworks.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/devicemodel/samples/nuc/launch_vxworks.sh b/devicemodel/samples/nuc/launch_vxworks.sh index 71146a86b..8dc2ec4ec 100755 --- a/devicemodel/samples/nuc/launch_vxworks.sh +++ b/devicemodel/samples/nuc/launch_vxworks.sh @@ -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 }