On Fri, Jan 23, 2015 at 10:16 PM, Chris J Arges <[email protected]>
wrote:

> #!/bin/bash
> # 2015 Chris J Arges <[email protected]>
> # Detect if we are running inside KVM
> NESTED_VM=0
> VM_STRINGS="KVM QEMU VMware VirtualBox Xen"
> VM_DETECT=$(dmesg | egrep -e '(Hypervisor detected|Booting paravirtualized
> kernel)')
> VM_DMIDECODE=$(sudo dmidecode | egrep -i 'manufacturer|product|vendor')
>

dmidecide is x86 only,

I've got access to a power8 kvm, I'll see what I can see there.

And if someone has some ARM64 system, that'd be helpful too.


for vm_string in $VM_STRINGS; do
>   if [[ ${VM_DETECT}${VM_DMIDECODE} == *"${vm_string}"* ]]; then
>     NESTED_VM=1; break;
>   fi
> done
> echo "NESTED_VM = $NESTED_VM"
>
> --
> You received this bug notification because you are subscribed to qemu in
> Ubuntu.
> https://bugs.launchpad.net/bugs/1414153
>
> Title:
>   qemu should not enable KSM on nested guests
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1414153/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1414153

Title:
  qemu should not enable KSM on nested guests

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1414153/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to