Does running an RT patched ubuntu as user vm require the service vm kernel to be RT patched


shibi590268@...
 

Does running an RT patched ubuntu as user vm require the service vm kernel to be RT patched?


Liu, Fuzhong
 

The service vm kernel doesn’t need RT related patches.

 

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Tuesday, February 15, 2022 12:15 PM
To: acrn-users@...
Subject: [acrn-users] Does running an RT patched ubuntu as user vm require the service vm kernel to be RT patched

 

Does running an RT patched ubuntu as user vm require the service vm kernel to be RT patched?


Geoffroy Van Cutsem
 

True, and the longer answer is (and I will also invite all the engineers and architects to correct me if and where needed): you don’t need those because the Service VM is not involved in the scheduling of the RTVM, it is running directly on dedicated CPU cores and that configuration is static. Even the interrupt distribution is passed-through (using the –lapic_pt flag).

 

I would also add that there are many parameters that should be taken into account when you design a system using RTVMs, we have a number of recommendations and tips listed here [1] but it is not exhaustive and we always, of course, recommend that you do your own testing and analysis of your systems when it’s running.

 

[1] https://projectacrn.github.io/latest/tutorials/rtvm_performance_tips.html

 

Cheers,

Geoffroy

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Liu, Fuzhong
Sent: Tuesday, February 15, 2022 1:01 pm
To: acrn-users@...
Subject: Re: [acrn-users] Does running an RT patched ubuntu as user vm require the service vm kernel to be RT patched

 

The service vm kernel doesn’t need RT related patches.

 

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Tuesday, February 15, 2022 12:15 PM
To: acrn-users@...
Subject: [acrn-users] Does running an RT patched ubuntu as user vm require the service vm kernel to be RT patched

 

Does running an RT patched ubuntu as user vm require the service vm kernel to be RT patched?


shibi590268@...
 

Hello Geoffroy,
          I am trying to run Ubuntu with RT patch applied. I followed https://projectacrn.github.io/2.0/tutorials/running_ubun_as_user_vm.html for converting qemu image to img with 20GB as disk space. The user vm runs as expected.

But I want to apply RT patch so i applied rt from inside qemu. It boots up properly inside qemu. Then, i converted the rt patched qcow2 image to img to use it with user vm. If i launch the launch script, it loads. But i don't get the login prompt even after a long time.

Is there any reference available for using RT patched Ubuntu Os as uservm?


Geoffroy Van Cutsem
 

Are you using the same launch script when you can successfully launch the standard User VM?


shibi590268@...
 

Geoffroy,
       Yeah I am using the same launch script.


Geoffroy Van Cutsem
 

Can you tell me how you installed the RT kernel inside the VM?

Do you have a serial port on your system running ACRN? If so, I would like to see the output from there.


shibi590268@...
 

I installed an ubuntu os inside qemu as given in running ubuntu as user vm. I chose OVFM boot loader in qemu. After installation I downloaded the Linux kernel and rt patch, compiled and installed. After reboot rt patched kernel is loaded successfully in qemu. Then, I converted the qcow2 to img. I tried that also by creating another instance in qemu and using the generated image. It loaded successfully. I am facing the issue when using the same image in launch script.

I will update the messages from ACRN console tomorrow.


shibi590268@...
 

I have fixed this issue. Now, the rt patched ubuntu runs successfully in acrn hypervisor


Geoffroy Van Cutsem
 

Glad you were able to fix it! Can you tell me what fixed it? I'm specifically interested in there are things we need to update/improve/modify in our documentation.

Thanks!