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

RE: [PATCH v8 7/7] xen/sysctl: wrap around sysctl hypercall


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Tue, 22 Jul 2025 06:59:08 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=vDt7F1ETt2no1y8jRz29Kmiiozci3/nQ5elZ8GKad90=; b=Tapf69PqQvyi/Bl6ZTd4d85FW5NrsDfVmdO6EgNqy5D2UDJ5IHQHpaQX0bRdG5SvinOIRi3azrIvRurrZR2plCuccGaTkKznubWnbxFWtozqQ7sqPEUNw5//itsH8i04lo2KIr0h36ZsASLM5F31OvoAmonC34ldxREge65487mLVeLTPYyOkfAIO7io53Z8qOzns6GqYfNFDgLwMUDmHb4MQg0GyZ9gdvmdNDdjPirTznSDlG9Ks5EW2CkGVQVJdtc+nLxUlG0iYJSJExE2wHiTz/a/AKVGoHthDV/8NW2qhi/DJvaQLav8Fi+BmDmYn00aUEDnxLhQfkNeDb7obA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vhO3eL8ynAJhq4jsLfRcnexL8kDV6FE4d01GrRX57HdnS5Y307DQDmR5BMlHrOInpzmXMWmD2AMiq7c/mp+UPtNWmkZj4PFh3Gc4FVdcZCtI0jfBQU+a65QUhEujWXuTMQO3ZHVcMPuUYnPpKVEvYA3JHQOKXZihffDpZm3b9AWYofwJDrcs2x2wYmn7Apu96cAGQWiiZPL1ZMcdzLXQhWTmQSiO4KWeObshGIgYlDVkWdItXRX+1AAuWbGxcYrQpdrIxW48Qw7/B+kMes3TgbitMaaHXZOUEJpxuvA8GRv9MiQ9jj0pCmOmeU072OE5NBHZ7xYjQtQlu8qqfZM8Iw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "Huang, Ray" <Ray.Huang@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Orzel, Michal" <Michal.Orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Sergiy Kibrik <Sergiy_Kibrik@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Stabellini, Stefano" <stefano.stabellini@xxxxxxx>
  • Delivery-date: Tue, 22 Jul 2025 06:59:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Enabled=True;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SetDate=2025-07-22T06:58:18.0000000Z;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Name=Open Source;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ContentBits=3;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Method=Privileged
  • Thread-index: AQHb8hzZ4PaGCcXW4ESgBHjQZ1Y4rLQ2DLKAgAebZgCAAAf0AIAABthA
  • Thread-topic: [PATCH v8 7/7] xen/sysctl: wrap around sysctl hypercall

[Public]

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Tuesday, July 22, 2025 1:33 PM
> To: Penny, Zheng <penny.zheng@xxxxxxx>
> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; Stefano Stabellini
> <sstabellini@xxxxxxxxxx>; Andrew Cooper <andrew.cooper3@xxxxxxxxxx>; Roger
> Pau Monné <roger.pau@xxxxxxxxxx>; Anthony PERARD
> <anthony.perard@xxxxxxxxxx>; Orzel, Michal <Michal.Orzel@xxxxxxx>; Julien
> Grall <julien@xxxxxxx>; Sergiy Kibrik <Sergiy_Kibrik@xxxxxxxx>; xen-
> devel@xxxxxxxxxxxxxxxxxxxx; Stabellini, Stefano <stefano.stabellini@xxxxxxx>
> Subject: Re: [PATCH v8 7/7] xen/sysctl: wrap around sysctl hypercall
>
> On 22.07.2025 07:05, Penny, Zheng wrote:
> > [Public]
> >
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: Thursday, July 17, 2025 4:55 PM
> >> To: Penny, Zheng <penny.zheng@xxxxxxx>; Stabellini, Stefano
> >> <stefano.stabellini@xxxxxxx>
> >> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; Stefano Stabellini
> >> <sstabellini@xxxxxxxxxx>; Andrew Cooper <andrew.cooper3@xxxxxxxxxx>;
> >> Roger Pau Monné <roger.pau@xxxxxxxxxx>; Anthony PERARD
> >> <anthony.perard@xxxxxxxxxx>; Orzel, Michal <Michal.Orzel@xxxxxxx>;
> >> Julien Grall <julien@xxxxxxx>; Sergiy Kibrik
> >> <Sergiy_Kibrik@xxxxxxxx>; xen- devel@xxxxxxxxxxxxxxxxxxxx
> >> Subject: Re: [PATCH v8 7/7] xen/sysctl: wrap around sysctl hypercall
> >>
> >> On 11.07.2025 06:31, Penny Zheng wrote:
> >>> --- a/xen/common/Makefile
> >>> +++ b/xen/common/Makefile
> >>> @@ -49,6 +49,7 @@ obj-y += spinlock.o
> >>>  obj-$(CONFIG_STACK_PROTECTOR) += stack-protector.o  obj-y +=
> >>> stop_machine.o  obj-y += symbols.o
> >>> +obj-$(CONFIG_SYSCTL) += sysctl.o
> >>>  obj-y += tasklet.o
> >>>  obj-y += time.o
> >>>  obj-y += timer.o
> >>> @@ -70,7 +71,6 @@ obj-$(CONFIG_COMPAT) += $(addprefix
> >>> compat/,domain.o memory.o multicall.o xlat.o  ifneq
> >>> ($(CONFIG_PV_SHIM_EXCLUSIVE),y) obj-y += domctl.o
> >>>  obj-$(CONFIG_VM_EVENT) += monitor.o -obj-y += sysctl.o  endif
> >>>
> >>>  extra-y := symbols-dummy.o
> >>
> >> CI demonstrates that this combination of changes is wrong. The job
> >> that failed
> >> (debian-12-x86_64-gcc-ibt) is a randconfig one, and ended up picking
> >> both SYSCTL=y and PV_SHIM_EXCLUSIVE=y. Which results in sysctl.c
> >> being built, but domctl.c not being built. Which leaves
> >> getdomaininfo() undefined, causing linking to fail. In case the next
> >> pipeline also ends up failing, I'll simply revert that change. In
> >> case it succeeds, not reverting may be an option, as long as a proper fix 
> >> shows
> up pretty quickly.
> >
> > I've push commit of " xen: move getdomaininfo() to domain.c " to try to fix 
> > the
> error.
>
> And you're reasonably certain that's the only issue? I ask because it is the 
> nature of
> randconfig to pick random combinations of settings; on a later pipeline I had 
> seen a
> different failure. I didn't look at that in detail (it may have had to do 
> with the domctl
> lock or something vaguely similar), which perhaps was a mistake.
>

I turned on HVM, HYPERV_GUEST, and VGA when PV_SHIM_EXCLUSIVE is on to track 
down more linking issues
All undefined link failure is due to removing PV_SHIM_EXCLUSIVE dependency for 
CONFIG_HVM, like monitor_traps, domctl_lock_acquire/domctl_lock_release, etc
I suggest to move domctl_lock_acquire/domctl_lock_release out of domctl.c too, 
and also "obj-$(CONFIG_VM_EVENT) += monitor.o" out of PV_SHIM_EXCLUSIVE guard
And above change, fwit, is to fix commit of " xen/x86: remove "depends on 
!PV_SHIM_EXCLUSIVE"  "

> Jan

 


Rackspace

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