[Xen-ia64-devel][PATCH][VTD] add hypercalls needed for VTD

2008-10-21 Thread Xu, Anthony
Add hypercalls needed for VTD Signed-off-by; Anthony Xu < [EMAIL PROTECTED] > hypercall_for_vtd.patch Description: hypercall_for_vtd.patch ___ Xen-ia64-devel mailing list Xen-ia64-devel@lists.xensource.com http://lists.xensource.com/xen-ia64-devel

[Xen-ia64-devel] RHEL5 2.6.18-53.12 IA64 xen kernel memory allocation problem

2008-10-21 Thread RuoMu Hu
Hi! I'm running RHEL5 2.6.18-53.1.21 xen IA64 kernel on an IA64 machine with 8GB memory . I can only allocate about 400M memory to dom0. Then I applied this patch to the kernel: http://lists.xensource.com/archives/html/xen-ia64-devel/2007-07/msg00274.html. Now the kernel can only recognize about

Re: [Xen-ia64-devel][PATCH][VTD] add hypercalls needed for VTD

2008-10-21 Thread Isaku Yamahata
On Tue, Oct 21, 2008 at 05:05:51PM +0800, Xu, Anthony wrote: > Add hypercalls needed for VTD > > Signed-off-by; Anthony Xu < [EMAIL PROTECTED] > > diff -r 3b1ff707d130 -r 55251ad3e262 xen/arch/ia64/xen/hypercall.c > --- a/xen/arch/ia64/xen/hypercall.c Tue Oct 21 10:41:54 2008 +0800 > +++ b/xen

Re: [Xen-ia64-devel] RHEL5 2.6.18-53.12 IA64 xen kernel memory allocation problem

2008-10-21 Thread Isaku Yamahata
On Tue, Oct 21, 2008 at 05:26:30PM +0800, RuoMu Hu wrote: > Hi! > > I'm running RHEL5 2.6.18-53.1.21 xen IA64 kernel on an IA64 machine with 8GB > memory . I can only allocate about 400M memory to dom0. Then I applied this > patch to the kernel: http://lists.xensource.com/archives/html/xen-ia64-

Re: [Xen-ia64-devel][PATCH][VTD] add head files and helper functions for VTD/ia64

2008-10-21 Thread Isaku Yamahata
On Tue, Oct 21, 2008 at 11:02:08AM +0800, Xu, Anthony wrote: > Add head files and helper functions for VTD/ia64. > > Signed-off-by; Anthony Xu < [EMAIL PROTECTED] > > > > #Cset 18649 -- 18653 in xen-devel tree are needed. > So you may need to pull from xen-devel, then apply this patch. > > Than

RE: [Xen-ia64-devel][PATCH][VTD] add head files and helper functions for VTD/ia64

2008-10-21 Thread Xu, Anthony
Updated one per your comments Thanks, Anthony Isaku Yamahata wrote: > On Tue, Oct 21, 2008 at 11:02:08AM +0800, Xu, Anthony wrote: >> Add head files and helper functions for VTD/ia64. >> >> Signed-off-by; Anthony Xu < [EMAIL PROTECTED] > >> >> >> #Cset 18649 -- 18653 in xen-devel tree are needed.

RE: [Xen-ia64-devel][PATCH][VTD] add hypercalls needed for VTD

2008-10-21 Thread Xu, Anthony
Updated one per your comments Thanks, Anthony Isaku Yamahata wrote: > On Tue, Oct 21, 2008 at 05:05:51PM +0800, Xu, Anthony wrote: >> Add hypercalls needed for VTD >> >> Signed-off-by; Anthony Xu < [EMAIL PROTECTED] > > > >> diff -r 3b1ff707d130 -r 55251ad3e262 xen/arch/ia64/xen/hypercall.c >> --

[Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Xu, Anthony
other small patches for VTD Signed-off-by: Anthony Xu <[EMAIL PROTECTED]> This patch is based on #Cset 18673 of xen-devel Thanks, Anthony diversity_vtd.patch Description: diversity_vtd.patch ___ Xen-ia64-devel mailing list Xen-ia64-devel@lists.xenso

Re: [Xen-ia64-devel][PATCH][VTD] add hypercalls needed for VTD

2008-10-21 Thread Isaku Yamahata
Hi Anthony. With the following 3 patches applied, xen panics. 0 A hypercall_for_vtd2.patch 1 A ia64-px-xen-setpxinfo-update.patch 2 A add_head_file_for_VTD2.patch dom0->arch.pdev_list doesn't seem to be initialized. diversity_vtd.patch has the corresponding line, but the hunk should be included

Re: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Isaku Yamahata
[I added Kyouya and Akio to CC for comments on the hunk in vtlb.c] On Tue, Oct 21, 2008 at 07:38:21PM +0800, Xu, Anthony wrote: > other small patches for VTD > > Signed-off-by: Anthony Xu <[EMAIL PROTECTED]> > > > This patch is based on #Cset 18673 of xen-devel > > Thanks, > Anthony The pat

RE: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Xu, Anthony
Isaku Yamahata wrote: > Doesn't this break the intention of the c/s 15134:466f71b1e831?a > To be honest, I'm not sure. Kyouya or Akio, do you have any comments? > > >> maddr = ((maddr & _PAGE_PPN_MASK) & PAGE_MASK) | (paddr & >> ~PAGE_MASK); >> diff -r e1ed3e5cd001 xen/arch/ia64/xen/domain.c >

Re: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Isaku Yamahata
On Wed, Oct 22, 2008 at 01:56:05PM +0800, Xu, Anthony wrote: > >> diff -r e1ed3e5cd001 xen/arch/ia64/xen/mm.c > >> --- a/xen/arch/ia64/xen/mm.c Tue Oct 21 18:55:22 2008 +0800 > >> +++ b/xen/arch/ia64/xen/mm.c Tue Oct 21 19:13:45 2008 +0800 @@ > >> -189,6 +189,10 @@ > >> > >> static void __xencom

RE: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Xu, Anthony
Isaku Yamahata wrote: > On Wed, Oct 22, 2008 at 01:56:05PM +0800, Xu, Anthony wrote: >> Yes, it is not SMP-safe there is lock for p2m. >> Modifying p2m is not a frequent operation, why not add a lock for it? > > It is frequent to read p2m table. So lockless approach was adopted > for scalability. >

Re: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Isaku Yamahata
On Wed, Oct 22, 2008 at 02:11:52PM +0800, Xu, Anthony wrote: > Isaku Yamahata wrote: > > On Wed, Oct 22, 2008 at 01:56:05PM +0800, Xu, Anthony wrote: > >> Yes, it is not SMP-safe there is lock for p2m. > >> Modifying p2m is not a frequent operation, why not add a lock for it? > > > > It is frequent

RE: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Xu, Anthony
Isaku Yamahata wrote: > On Wed, Oct 22, 2008 at 02:11:52PM +0800, Xu, Anthony wrote: >> Isaku Yamahata wrote: >>> On Wed, Oct 22, 2008 at 01:56:05PM +0800, Xu, Anthony wrote: Yes, it is not SMP-safe there is lock for p2m. Modifying p2m is not a frequent operation, why not add a lock for >

Re: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Isaku Yamahata
On Wed, Oct 22, 2008 at 02:30:50PM +0800, Xu, Anthony wrote: > Isaku Yamahata wrote: > > On Wed, Oct 22, 2008 at 02:11:52PM +0800, Xu, Anthony wrote: > >> Isaku Yamahata wrote: > >>> On Wed, Oct 22, 2008 at 01:56:05PM +0800, Xu, Anthony wrote: > Yes, it is not SMP-safe there is lock for p2m. >

RE: [Xen-ia64-devel][PATCH][VTD] small patches for VTD

2008-10-21 Thread Xu, Anthony
Isaku Yamahata wrote: > On Wed, Oct 22, 2008 at 02:30:50PM +0800, Xu, Anthony wrote: >> Isaku Yamahata wrote: >>> On Wed, Oct 22, 2008 at 02:11:52PM +0800, Xu, Anthony wrote: Isaku Yamahata wrote: > On Wed, Oct 22, 2008 at 01:56:05PM +0800, Xu, Anthony wrote: >> Yes, it is not SMP-safe