On Fri, Jan 23, 2015 at 10:16 PM, Chris J Arges <1414...@bugs.launchpad.net>
wrote:

> #!/bin/bash
> # 2015 Chris J Arges <chris.j.ar...@canonical.com>
> # 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
Server Team, which is 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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to