From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Windows XP internal Power error Date: Thu, 14 Dec 2006 13:35:51 +0200 Message-ID: <45813717.7080708@qumranet.com> References: <64F9B87B6B770947A9F8391472E03216097F0C8E@ehost011-8.exch011.intermedia.net> <20061214115030.5zeg7g3xl24ggwkg@webmail.provincia.torino.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000802000402020504070106" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: ignazio.cassano-VeGButH3FaVpxaeRVNJOcDUZDU+1vuVT@public.gmane.org In-Reply-To: <20061214115030.5zeg7g3xl24ggwkg-2RFepEojUI1V4YG60fcVpWnFp5FU0k5wNRkNT7W+5VM@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------000802000402020504070106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit ignazio.cassano-VeGButH3FaVpxaeRVNJOcDUZDU+1vuVT@public.gmane.org wrote: > I applyed the patch. > Attacched here there is the dmesg output. Please run the attached program and report output. Before you run it, run 'modprobe msr' and check you have a /dev/cpu/0/msr. -- error compiling committee.c: too many arguments to function --------------000802000402020504070106 Content-Type: text/x-csrc; name="check_msr.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="check_msr.c" #define _FILE_OFFSET_BITS 64 #include #include #include #include #include #include void check_msr(int fd, uint32_t msr) { uint64_t val; if (lseek(fd, msr, SEEK_SET) == (off_t)-1) { printf("see to msr %08x failed: %m\n", msr); return; } if (read(fd, &val, 8) == -1) { printf("%08x: cannot read\n", msr); return; } if (lseek(fd, msr, SEEK_SET) == (off_t)-1) { printf("see to msr %08x failed: %m\n", msr); return; } if (write(fd, &val, 8) == -1) { printf("%08x: cannot write\n", msr); return; } printf("%08x: may read and write\n", msr); } int main(int ac, char **av) { int r, fd; r = open("/dev/cpu/0/msr", O_RDWR); if (r == -1) { printf("cannot open /dev/cpu/0/msr: %m\n"); exit(1); } fd = r; check_msr(fd, 0xc0000080); check_msr(fd, 0xc0000081); check_msr(fd, 0xc0000082); check_msr(fd, 0xc0000083); check_msr(fd, 0xc0000084); check_msr(fd, 0xc0000102); check_msr(fd, 0x12345678); } --------------000802000402020504070106 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --------------000802000402020504070106 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------000802000402020504070106--