From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFT] kvm with Windows optimization Date: Fri, 26 Oct 2007 12:01:29 +0200 Message-ID: <4721BAF9.4030903@qumranet.com> References: <4720D122.4070606@qumranet.com> <4720E023.8050804@codemonkey.ws> <10EA09EFD8728347A513008B6B0DA77A0248295E@pdsmsx411.ccr.corp.intel.com> <4721AC51.3090108@qumranet.com> <10EA09EFD8728347A513008B6B0DA77A02482C0D@pdsmsx411.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: "Dong, Eddie" Return-path: In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A02482C0D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@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 Dong, Eddie wrote: >>> >>> >> Thanks for the hint; I'll add that. I think Vista hits the tpr much >> less frequently, so it can work well without the optimization. >> >> > Curious: How do u know ROM is mapped 0xf00000000 in Windows? > Eddie > > > kvm_get_sregs(kvm_context, env->cpu_index, &sregs); > > probe = (rip & 0xf0000000) + 0xe0000; > phys = map_addr(&sregs, probe, &perms); > if (phys != 0xe0000) > return 0; > printf("bios ok at %lx\n", (long)probe); > I checked :) It's actually not mapped at 0xf0000000. On normal Windows XP it is mapped at 0x80000000, with /3GB it is mapped at 0xe0000000. The code checks it is within the same 256MB segment as the code that's hitting tpr. It could probably be improved. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/