[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] net accel: Prevent frontend network accelerator plugin loading in dom0



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1202723755 0
# Node ID 2276cd5e2341360bad83f2d45f75bfb02751f6d4
# Parent  c71467ad40d13477cf06c809d59ce58e64abdfda
net accel: Prevent frontend network accelerator plugin loading in dom0

Generate error if frontend plugin tries to connect on dom0

Signed-off-by: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
---
 drivers/xen/netfront/accel.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r c71467ad40d1 -r 2276cd5e2341 drivers/xen/netfront/accel.c
--- a/drivers/xen/netfront/accel.c      Mon Feb 11 09:55:25 2008 +0000
+++ b/drivers/xen/netfront/accel.c      Mon Feb 11 09:55:55 2008 +0000
@@ -446,6 +446,9 @@ int netfront_accelerator_loaded(int vers
 {
        struct netfront_accelerator *accelerator;
 
+       if (is_initial_xendomain())
+               return -EINVAL;
+
        if (version != NETFRONT_ACCEL_VERSION) {
                if (version > NETFRONT_ACCEL_VERSION) {
                        /* Caller has higher version number, leave it

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.