If I want to use QNX 8.0 hypervisor in my embedded application, should I put my application code running directly on the hypervisor (native), or should I provision a guest QNX VM and put my code running from the guest QNX VM? Which one is the recommended practice?
A hypervisor allows multiple VMs to run on one machine. QNX is not the only company that makes something like this. It’s not normally possible to do anything (change it’s code, add code to it etc) with the hypervisor itself.
That means your application will go in the Guest QNX VM. What type of application are you creating and what will it do?
Tim
Thanks Tim. My application is a realtime application. I would rather run my app on QNX hypervisor directly instead of inside a guest QNX VM to reduce the overhead and latency of virtualization layer. I asked QNX tech support and they told us that running application code on the QNX hyervisor is fine if my app is a realtime application. I just want to confirm that since normally most apps in cloud server environment run in VMs rather than on the hypervisor itself.
I just did some brief reading on the QNX Hypervisor (we are still on QNX 7 which doesn’t have this feature). Theirs is quite a bit different from VMWare which is what most people (including myself) are familiar with.
It appears you can directly put your program into the hypervisor image. This is similar to how prior versions of QNX handle boot images (they weren’t called hypervisors then because you could not have a guest OS). So definitely you can go this way which is how prior versions of QNX understand things.
How small a latency do you actually need in your program and are you accessing any unique hardware (writing to a disk isn’t unique hardware)?
Tim
Some tasks has latency requirements such as under 4 ms. That’s why I don’t want to run the code in a QNX VM if I can run it directly on the hypervisor. There isn’t any specific unique hardware but most are general I/O peripherals.
Believe it or not, 4 ms isn’t particularly tight timing wise these days on modern CPU’s.
Our controls code process (several thousand lines) executes entirely in under 1 ms when compiled in C++ release mode.
Tim