Re: [kvm-devel] [PATCH] vmx: enable io bitmaps to avoid IO port 0x80 VMEXITs

2007-04-29 Thread Avi Kivity
He, Qing wrote: > > +static char *vmx_io_bitmap; > If you write static char vmx_io_bitmap[PAGE_SIZE*2] __aligned(PAGE_SIZE); you can avoid the allocation and deallocation completely. But you have to use vmalloc_to_page() instead of __pa(). -- error compiling committee.c: too many a

Re: [kvm-devel] [PATCH] vmx: enable io bitmaps to avoid IO port 0x80 VMEXITs

2007-04-29 Thread Avi Kivity
He, Qing wrote: > This patch enables IO bitmaps control on vmx and unmask the 0x80 port to > avoid VMEXITs caused by accessing port 0x80. 0x80 is used as delays (see > include/asm/io.h), and handling VMEXITs on its access is unnecessary but > slows things down. This patch improves kernel build test

Re: [kvm-devel] [PATCH] vmx: enable io bitmaps to avoid IO port 0x80 VMEXITs

2007-04-28 Thread He, Qing
>-Original Message- >From: Neo Jia [mailto:[EMAIL PROTECTED] >Sent: 2007年4月29日 14:36 >To: He, Qing >Cc: kvm-devel >Subject: Re: [kvm-devel] [PATCH] vmx: enable io bitmaps to avoid IO port 0x80 >VMEXITs > >On 4/29/07, He, Qing <[EMAIL PROTECTED]> wrote:

Re: [kvm-devel] [PATCH] vmx: enable io bitmaps to avoid IO port 0x80 VMEXITs

2007-04-28 Thread Neo Jia
On 4/29/07, He, Qing <[EMAIL PROTECTED]> wrote: > This patch enables IO bitmaps control on vmx and unmask the 0x80 port to > avoid VMEXITs caused by accessing port 0x80. 0x80 is used as delays (see > include/asm/io.h), and handling VMEXITs on its access is unnecessary but > slows things down. This

[kvm-devel] [PATCH] vmx: enable io bitmaps to avoid IO port 0x80 VMEXITs

2007-04-28 Thread He, Qing
This patch enables IO bitmaps control on vmx and unmask the 0x80 port to avoid VMEXITs caused by accessing port 0x80. 0x80 is used as delays (see include/asm/io.h), and handling VMEXITs on its access is unnecessary but slows things down. This patch improves kernel build test at around 3%~5%.