search for: is_xen

Displaying 3 results from an estimated 3 matches for "is_xen".

2010 Jun 29
1
[PATCH] virt-what.in: Added VMware virt detection using cpuid in wrapper script
...ollowing resources were useful in writing this script: # . http://www.dmo.ca/blog/20080530151107 +# +# +# Added VMware detection using cpuid. +# Added functions to check the environment type +# 06/29/2010 - Chetan Loke <loke.c at alumni.neu.edu> +# + VERSION="@VERSION@" +cpuid= +is_xen=1 + function fail { echo "virt-what: $1" exit 1 @@ -38,7 +48,8 @@ echo "Options:" echo " --help Display this help" echo " --version Display version and exit" - exit 0 + # exit after printing + exit 1 } # Handl...
2010 Jun 29
1
[PATCH] virt-what.in: Added VMware virt detection using cpuid in wrapper script
...ollowing resources were useful in writing this script: # . http://www.dmo.ca/blog/20080530151107 +# +# +# Added VMware detection using cpuid. +# Added functions to check the environment type +# 06/29/2010 - Chetan Loke <loke.c at alumni.neu.edu> +# + VERSION="@VERSION@" +cpuid= +is_xen=1 + function fail { echo "virt-what: $1" exit 1 @@ -38,7 +48,8 @@ echo "Options:" echo " --help Display this help" echo " --version Display version and exit" - exit 0 + # exit after printing + exit 1 } # Handl...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...t "fullvirt=yes\n"; + return; + } + } } print "fullvirt=no\n"; } @@ -734,13 +734,13 @@ guest). sub output_query_xen_domU_kernel { foreach my $os (keys %$oses) { - foreach my $kernel (@{$oses->{$os}->{kernels}}) { - my $is_xen = $kernel->{version} =~ m/xen/; - if ($is_xen) { - print "xen_domU_kernel=yes\n"; - return; - } - } + foreach my $kernel (@{$oses->{$os}->{kernels}}) { + my $is_xen = $kernel->{version} =~ m/xen/; + if ($is_xen) { + print &...