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

[Xen-devel] [PATCH] Prevent frontend network accelerator plugin loading in dom0

Generate error if frontend plugin tries to connect on dom0

diff -r bb5ece87256b drivers/xen/netfront/accel.c
--- a/drivers/xen/netfront/accel.c
+++ b/drivers/xen/netfront/accel.c
@@ -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-devel mailing list



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