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

Re: Network driver domain broken


  • To: Jason Andryuk <jandryuk@xxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Andrea Stevanato <andrea.stevanato@xxxxxxxxxxxxxxx>
  • Date: Fri, 4 Mar 2022 12:18:18 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=santannapisa.it; dmarc=pass action=none header.from=santannapisa.it; dkim=pass header.d=santannapisa.it; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c1UehCpKL0sUjppEIROksc1zAgP0aPVzngp56HWLTik=; b=WPLdJvUb5a+EJXr3d48JLwxs/iTm6BVNcyV/MSGRsybkyVwUQFIJY6h7SqjdJsBMsisRehtH9GygJHw8H9dEq/cv5Xtm7dvZM5x7bJPtkhI49J2eWDX3Z+Tn6Xaw++4FZ/pe7v4huHLObBDvYdP1WIQ7YhzayimB981u7qdSgGJ/JVjcigM6k7zJ17wLobspP8L5xPpGGdIX74nRsCvLl6KTO4VWvwjG8YVG7Y83RCRc9L1Qz4BUIF/aPUAOnlemByHhc/7T0fR2pUYjfAU9KlI1IDtUDVbj3to8m3NO+k0Z/NXIQ+WvUIhcv+swDdGiOUu3nKN4ou4pE6mag6eCCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WtDBK/yXMyY40hETLLscQhZInGx9OCHhSNlKgESEg1n6L/TaUoSipsWlB+J/yDWPasgh6VlbPJ6P9SDCLVlsB1K9b7iIYwzVUTIPMSBt9cOfOofWDJwedOs2eUQFLYt1HePaQD0+Td5wPE4494CLf1J0R5GoN7ojxEzxxVX6PK281zW2SWkyujVHpWkauZHofEjzyHrRXvg+CjeQIQNcPtrJ9AAiLB6E/ba98hW6Jzavajd3QJjo+/8kgnN4T5rj4TH47YxXtwrqX8blanz7TMld3K4gMjPhk6HkKaFPUZ2yG2N5hxyJHCmow5Ofvg9pGcJ8izklbrquPm+LDjLtaw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=santannapisa.it;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Fri, 04 Mar 2022 11:18:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 03/03/2022 19:08, Jason Andryuk wrote:
On Thu, Mar 3, 2022 at 11:34 AM Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:

On Thu, Mar 03, 2022 at 05:01:23PM +0100, Andrea Stevanato wrote:
On 03/03/2022 15:54, Andrea Stevanato wrote:
Hi all,

according to the conversation that I had with royger, aa67b97ed34  broke the 
driver domain support.

What I'm trying to do is to setup networking between guests using driver 
domain. Therefore, the guest (driver) has been started with the following cfg.

name    = "guest0"
kernel  = "/media/sd-mmcblk0p1/Image"
ramdisk = "/media/sd-mmcblk0p1/rootfs.cpio.gz"
extra   = "console=hvc0 rdinit=/sbin/init root=/dev/ram0"
memory  = 1024 vcpus   = 2
driver_domain = 1

On guest0 I created the bridge, assigned a static IP and started the udhcpd on 
xenbr0 interface.
While the second guest has been started with the following cfg:

name    = "guest1"
kernel  = "/media/sd-mmcblk0p1/Image"
ramdisk = "/media/sd-mmcblk0p1/rootfs.cpio.gz"
extra   = "console=hvc0 rdinit=/sbin/init root=/dev/ram0"
memory  = 1024 vcpus   = 2
vcpus   = 2
vif = [ 'bridge=xenbr0, backend=guest0' ]

Follows the result of strace xl devd:

# strace xl devd
execve("/usr/sbin/xl", ["xl", "devd"], 0xffffdf0420c8 /* 13 vars */) = 0

ioctl(5, _IOC(_IOC_NONE, 0x50, 0, 0x30), 0xffffe6e41b40) = -1 EPERM (Operation 
not permitted)
write(2, "libxl: ", 7libxl: )                  = 7
write(2, "error: ", 7error: )                  = 7
write(2, "libxl_utils.c:820:libxl_cpu_bitm"..., 
87libxl_utils.c:820:libxl_cpu_bitmap_alloc: failed to retrieve the maximum number of 
cpus) = 87
write(2, "\n", 1
)                       = 1
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0xffff9ee7a0e0) = 814
wait4(814, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 814
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=814, si_uid=0, 
si_status=0, si_utime=2, si_stime=2} ---

xl devd is daemonizing, but strace is only following the first
process.  Use `strace xl devd -F` to prevent the daemonizing (or
`strace -f xl devd` to follow children).

close(6)                                = 0
close(5)                                = 0
munmap(0xffff9f45f000, 4096)            = 0
close(7)                                = 0
close(10)                               = 0
close(9)                                = 0
close(8)                                = 0
close(11)                               = 0
close(3)                                = 0
close(4)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

royger told me that it is a BUG and not an issue with my setup. Therefore here 
I am.

Just a bit more context: AFAICT the calls to libxl_cpu_bitmap_alloc in
parse_global_config will prevent xl from being usable on anything
different than the control domain (due to sysctl only available to
privileged domains). This is an issue for 'xl devd', as it won't
start anymore.

These look non-fatal at first glance?

Regards,
Jason

Well, actually, this prevents me to be able to create network driver domains for inter-guests networking (no passthrough is required since they do not need to reach outside).

Cheers,
Andrea



 


Rackspace

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