search for: parse_cpuid

Displaying 4 results from an estimated 4 matches for "parse_cpuid".

Did you mean: parse_cid
2012 Sep 14
1
[PATCH] xenpm: make argument parsing and error handling more consistent
...misc/xenpm.c @@ -36,7 +36,7 @@ #define CPUFREQ_TURBO_ENABLED 1 static xc_interface *xc_handle; -static int max_cpu_nr; +static unsigned int max_cpu_nr; /* help message */ void show_help(void) @@ -77,6 +77,33 @@ void help_func(int argc, char *argv[]) show_help(); } +static void parse_cpuid(const char *arg, int *cpuid) +{ + if ( sscanf(arg, "%d", cpuid) != 1 || *cpuid < 0 ) + { + if ( strcasecmp(arg, "all") ) + { + fprintf(stderr, "Invalid CPU identifier: ''%s''\n", arg); + exit(EINVAL); +...
2010 Aug 27
3
[PATCH 0/2] [RFC] xl: add cpuid config file option
...gt; # - CPUID.1[EBX] : Threads per Core * Cores per Socket (2 * #vcpus) > # - CPUID.1[EDX][HT] : Enable HT > # - CPUID.0x80000001[CmpLegacy] : Use legacy method > # - CPUID.0x80000008[ECX] : #vcpus * 2 - 1 new version: cpuid="host,htt=1,cmplegacy=1,proccount=10,nc=9" The parse_cpuid function in xl_cmdimpl.c parses the string and translates it into the interface used by libxc. If backward compatibility to the xm version is needed, I could also add a quirk for the old interface. Since it uses a Python list, this can be intercepted early in xl''s parsing process and coul...
2010 Apr 08
23
Xen 4.0 on gentoo hotplug scripts problem?
Hi, Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) forward ported dom0 kernel, Xen itself seems to boot up successfully and everything else on the system is working normally, but when I try to start a domain xm create appears to hang and eventually I get a hotplug scripts error: Error: Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected.
2010 Apr 08
23
Xen 4.0 on gentoo hotplug scripts problem?
Hi, Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) forward ported dom0 kernel, Xen itself seems to boot up successfully and everything else on the system is working normally, but when I try to start a domain xm create appears to hang and eventually I get a hotplug scripts error: Error: Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected.