* [PATCH][P2M] add printk to NP PAE logic in p2m
@ 2008-01-15 19:22 Woller, Thomas
2008-01-15 19:31 ` Keir Fraser
0 siblings, 1 reply; 7+ messages in thread
From: Woller, Thomas @ 2008-01-15 19:22 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 374 bytes --]
Adding a P2M_ERROR message when startup of a PAE HVM guest, on a PAE
hypervisor exceeds the ~4Gig memory size limitation.
Please apply to unstable (no need to add to 3.2-testing, or to 3.1.3).
Signed-off-by: Tom Woller <thomas.woller@amd.com>
--Tom
thomas.woller@amd.com +1-512-602-0059
AMD Corporation - Operating Systems Research Center
Austin, Texas
[-- Attachment #2: svm_npt_pae_4gig.patch --]
[-- Type: application/octet-stream, Size: 643 bytes --]
diff -r 533a8e6cebd0 xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c Sat Jan 12 11:26:04 2008 +0000
+++ b/xen/arch/x86/mm/p2m.c Tue Jan 15 12:45:14 2008 -0600
@@ -705,8 +705,11 @@ guest_physmap_add_entry(struct domain *d
* hardware translation limit. This limitation is checked by comparing
* gfn with 0xfffffUL.
*/
- if ( paging_mode_hap(d) && (gfn > 0xfffffUL) )
+ if ( paging_mode_hap(d) && (gfn > 0xfffffUL) ) {
+ P2M_ERROR("Nested Paging does not support PAE guests, "\
+ "on PAE hypervisors using more than 4GB of memory.\n");
return -EINVAL;
+ }
#endif
p2m_lock(d);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH][P2M] add printk to NP PAE logic in p2m
2008-01-15 19:22 [PATCH][P2M] add printk to NP PAE logic in p2m Woller, Thomas
@ 2008-01-15 19:31 ` Keir Fraser
2008-01-16 15:36 ` Stephen C. Tweedie
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Keir Fraser @ 2008-01-15 19:31 UTC (permalink / raw)
To: Woller, Thomas, xen-devel
If we add that printk() then it's on a path triggerable by an HVM guest (via
the populate_physmap hypercall, for example) and there is a potential DoS
attack. The need to modify the Xen command line to enable NPT on PAE
hypervisor should really be caveat enough anyway.
-- Keir
On 15/1/08 19:22, "Woller, Thomas" <thomas.woller@amd.com> wrote:
> Adding a P2M_ERROR message when startup of a PAE HVM guest, on a PAE
> hypervisor exceeds the ~4Gig memory size limitation.
>
> Please apply to unstable (no need to add to 3.2-testing, or to 3.1.3).
>
> Signed-off-by: Tom Woller <thomas.woller@amd.com>
>
> --Tom
>
> thomas.woller@amd.com +1-512-602-0059
> AMD Corporation - Operating Systems Research Center
> Austin, Texas
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH][P2M] add printk to NP PAE logic in p2m
2008-01-15 19:31 ` Keir Fraser
@ 2008-01-16 15:36 ` Stephen C. Tweedie
2008-01-16 16:52 ` Stephen C. Tweedie
2008-01-17 3:23 ` about netchannel2 tgh
2 siblings, 0 replies; 7+ messages in thread
From: Stephen C. Tweedie @ 2008-01-16 15:36 UTC (permalink / raw)
To: Keir Fraser
Cc: Stephen Tweedie, xen-devel@lists.xensource.com, Woller, Thomas
Hi,
On Tue, 2008-01-15 at 19:31 +0000, Keir Fraser wrote:
> If we add that printk() then it's on a path triggerable by an HVM guest (via
> the populate_physmap hypercall, for example) and there is a potential DoS
> attack. The need to modify the Xen command line to enable NPT on PAE
> hypervisor should really be caveat enough anyway.
Hardly, there's no reason at all for a user to assume that enabling NPT
in that situation will cause guest address spaces to be truncated.
Ideally we'd have a text message delivered back to the user on all
domain creations when this truncation happens. A log message is
probably the minimum reasonable notification; truncating silently is a
pretty poor option.
There are plenty of solutions --- simply do the printk once per domain,
for example, or rate-limit it, or don't do it when the physmap is
populated but have a separate test at domain build time. But truncating
silently seems to be one of the worst alternatives.
Cheers,
Stephen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][P2M] add printk to NP PAE logic in p2m
2008-01-15 19:31 ` Keir Fraser
2008-01-16 15:36 ` Stephen C. Tweedie
@ 2008-01-16 16:52 ` Stephen C. Tweedie
2008-01-17 3:23 ` about netchannel2 tgh
2 siblings, 0 replies; 7+ messages in thread
From: Stephen C. Tweedie @ 2008-01-16 16:52 UTC (permalink / raw)
To: Keir Fraser
Cc: Stephen Tweedie, xen-devel@lists.xensource.com, Woller, Thomas
Hi,
On Tue, 2008-01-15 at 19:31 +0000, Keir Fraser wrote:
> If we add that printk() then it's on a path triggerable by an HVM guest (via
> the populate_physmap hypercall, for example) and there is a potential DoS
> attack. The need to modify the Xen command line to enable NPT on PAE
> hypervisor should really be caveat enough anyway.
Hardly, there's no reason at all for a user to assume that enabling NPT
in that situation will cause guest address spaces to be truncated.
Ideally we'd have a text message delivered back to the user on all
domain creations when this truncation happens. A log message is
probably the minimum reasonable notification; truncating silently is a
pretty poor option.
There are plenty of solutions --- simply do the printk once per domain,
for example, or rate-limit it, or don't do it when the physmap is
populated but have a separate test at domain build time. But truncating
silently seems to be one of the worst alternatives.
Cheers,
Stephen
^ permalink raw reply [flat|nested] 7+ messages in thread
* about netchannel2
2008-01-15 19:31 ` Keir Fraser
2008-01-16 15:36 ` Stephen C. Tweedie
2008-01-16 16:52 ` Stephen C. Tweedie
@ 2008-01-17 3:23 ` tgh
2008-01-17 4:28 ` Li, Xin B
2 siblings, 1 reply; 7+ messages in thread
From: tgh @ 2008-01-17 3:23 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel, Woller, Thomas
hi
I have read something about netchannel2 somewhere ,say xen-summit or
somewhere else, and i am interested in the netchannel2,but with some
confusion ,and has netchannel2 been integrated and supported by xen or
not ? and could anyone give me a detailed explanation about the
mechanism and implementation of netchannel2 and its status
Thanks in advance
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: about netchannel2
2008-01-17 3:23 ` about netchannel2 tgh
@ 2008-01-17 4:28 ` Li, Xin B
2008-01-17 8:18 ` tgh
0 siblings, 1 reply; 7+ messages in thread
From: Li, Xin B @ 2008-01-17 4:28 UTC (permalink / raw)
To: tgh, Keir Fraser; +Cc: xen-devel, Woller, Thomas
>hi
> I have read something about netchannel2 somewhere ,say xen-summit or
>somewhere else, and i am interested in the netchannel2,but with some
>confusion ,and has netchannel2 been integrated and supported
>by xen or not ?
no yet.
> and could anyone give me a detailed explanation about the
>mechanism and implementation of netchannel2 and its status
what's your confusion?
-Xin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: about netchannel2
2008-01-17 4:28 ` Li, Xin B
@ 2008-01-17 8:18 ` tgh
0 siblings, 0 replies; 7+ messages in thread
From: tgh @ 2008-01-17 8:18 UTC (permalink / raw)
To: Li, Xin B; +Cc: xen-devel, Woller, Thomas
hi
thank you for your reply, and I have read something about
netchannel2,and then ,nowadays , i read the summit ppt which refer to
the integration of the netchannel2, but, to be frank, i forget the main
idea of netchannel2 ,only remembering that it is interesting and about
something to improve the network performance or something about
smartNIC,which i am not clear about either,and i could not find the
paper or doc about them , and could you give me some explanation about
it ,or give me some paper about it or some guide about netchannel2's
motivation and main idea or something
Thanks in advance
Li, Xin B 写道:
>> hi
>> I have read something about netchannel2 somewhere ,say xen-summit or
>> somewhere else, and i am interested in the netchannel2,but with some
>> confusion ,and has netchannel2 been integrated and supported
>> by xen or not ?
>>
>
> no yet.
>
>
>> and could anyone give me a detailed explanation about the
>> mechanism and implementation of netchannel2 and its status
>>
>
> what's your confusion?
> -Xin
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-01-17 8:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 19:22 [PATCH][P2M] add printk to NP PAE logic in p2m Woller, Thomas
2008-01-15 19:31 ` Keir Fraser
2008-01-16 15:36 ` Stephen C. Tweedie
2008-01-16 16:52 ` Stephen C. Tweedie
2008-01-17 3:23 ` about netchannel2 tgh
2008-01-17 4:28 ` Li, Xin B
2008-01-17 8:18 ` tgh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.