From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 545E5C07E98 for ; Mon, 5 Jul 2021 04:32:13 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 10211613CB for ; Mon, 5 Jul 2021 04:32:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10211613CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0GHE-0004Dx-7r for qemu-devel@archiver.kernel.org; Mon, 05 Jul 2021 00:32:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0GBi-0004RJ-Br for qemu-devel@nongnu.org; Mon, 05 Jul 2021 00:26:30 -0400 Received: from indium.canonical.com ([91.189.90.7]:49394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0GBg-0002wV-9k for qemu-devel@nongnu.org; Mon, 05 Jul 2021 00:26:30 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.93 #5 (Debian)) id 1m0GBR-0004RP-FI for ; Mon, 05 Jul 2021 04:26:13 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 5BCE72E81D5 for ; Mon, 5 Jul 2021 04:26:02 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Jul 2021 04:17:32 -0000 From: Launchpad Bug Tracker <1821771@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Expired; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: kvm numa powerpc X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: janitor sathnaga th-huth X-Launchpad-Bug-Reporter: Satheesh Rajendran (sathnaga) X-Launchpad-Bug-Modifier: Launchpad Janitor (janitor) References: <155361583469.17984.11681376513113338670.malonedeb@gac.canonical.com> Message-Id: <162545865224.12677.8484381871430887108.malone@loganberry.canonical.com> Subject: [Bug 1821771] Re: KVM guest does not reflect numa distances configured through qemu X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="c7d3f30bfe7d7b488c7f9d3c8d7880184b1d065e"; Instance="production" X-Launchpad-Hash: 8b6c6e358176e3d13b1584cfa40df5ef25cd7838 Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-Spam_score_int: -66 X-Spam_score: -6.7 X-Spam_bar: ------ X-Spam_report: (-6.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1821771 <1821771@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" [Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete =3D> Expired -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1821771 Title: KVM guest does not reflect numa distances configured through qemu Status in QEMU: Expired Bug description: KVM guest does not reflect numa distances configured through qemu Env: Host/Guest Kernel: 5.1.0-rc1-g72999bbdc qemu : 3.1.90 (v2.8.0-rc0-18614-g278aebafa0-dirty) [repo: https://github.= com/dgibson/qemu; branch:ppc-for-4.1 ] # git log -1 commit 278aebafa02f699857ca082d966bcbc05dc9bffb (HEAD -> ppc-for-4.1) Author: Jafar Abdi Date: Sat Mar 23 17:26:36 2019 +0300 tests/libqos: fix usage of bool in pci-spapr.c = Clean up wrong usage of FALSE and TRUE in places that use "bool" from= stdbool.h. = FALSE and TRUE (with capital letters) are the constants defined by gl= ib for being used with the "gboolean" type of glib. But some parts of the co= de also use TRUE and FALSE for variables that are declared as "bool" (the type fr= om ). = Signed-off-by: Jafar Abdi Reviewed-by: Eric Blake Message-Id: <1553351197-14581-4-git-send-email-cafer.abdi@gmail.com> Signed-off-by: David Gibson # libvirtd -V libvirtd (libvirt) 5.1.0 Steps to reproduce: 1. Boot attached guest xml with predefined numa distance. qemu-commandline: /usr/share/avocado-plugins-vt/bin/install_root/bin/qemu-system-ppc64 -nam= e guest=3Dvm2,debug-threads=3Don -S -object secret,id=3DmasterKey0,format= =3Draw,file=3D/var/lib/libvirt/qemu/domain-15-vm2/master-key.aes -machine p= series-4.0,accel=3Dkvm,usb=3Doff,dump-guest-core=3Doff -m 4096 -realtime ml= ock=3Doff -smp 4,sockets=3D1,cores=3D4,threads=3D1 -numa node,nodeid=3D0,cp= us=3D0-1,mem=3D2048 -numa node,nodeid=3D1,cpus=3D2-3,mem=3D2048 -uuid 1a870= f1d-269a-4a8c-84bc-2b5bda72823a -display none -no-user-config -nodefaults -= chardev socket,id=3Dcharmonitor,fd=3D28,server,nowait -mon chardev=3Dcharmo= nitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Dutc -no-shutdown -boot strict= =3Don -kernel /home/kvmci/linux/vmlinux -append root=3D/dev/sda2 rw console= =3Dtty0 console=3DttyS0,115200 init=3D/sbin/init initcall_debug selinux=3D= 0 -device qemu-xhci,id=3Dusb,bus=3Dpci.0,addr=3D0x3 -device virtio-scsi-pci= ,id=3Dscsi0,bus=3Dpci.0,addr=3D0x2 -drive file=3D/var/lib/avocado/data/avoc= ado-vt/images/jeos-27-ppc64le.qcow2,format=3Dqcow2,if=3Dnone,id=3Ddrive-scs= i0-0-0-0 -device scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D0,devi= ce_id=3Ddrive-scsi0-0-0-0,drive=3Ddrive-scsi0-0-0-0,id=3Dscsi0-0-0-0,bootin= dex=3D1 -netdev tap,fd=3D30,id=3Dhostnet0,vhost=3Don,vhostfd=3D31 -device v= irtio-net-pci,netdev=3Dhostnet0,id=3Dnet0,mac=3D52:54:00:f4:f5:f6,bus=3Dpci= .0,addr=3D0x1 -chardev pty,id=3Dcharserial0 -device spapr-vty,chardev=3Dcha= rserial0,id=3Dserial0,reg=3D0x30000000 -device virtio-balloon-pci,id=3Dball= oon0,bus=3Dpci.0,addr=3D0x4 -msg timestamp=3Don = 2. Check numa distance and other details inside guest # numactl -H available: 2 nodes (0-1) node 0 cpus: 0 1 node 0 size: 2025 MB node 0 free: 1837 MB node 1 cpus: 2 3 node 1 size: 2045 MB node 1 free: 1646 MB node distances: node 0 1 = 0: 10 40 -----------------------------------NOK 1: 40 10 = # lsprop /proc/device-tree/cpus/PowerPC\,POWER9\@*/ibm\,associativity = /proc/device-tree/cpus/PowerPC,POWER8@0/ibm,associativity 00000005 00000000 00000000 00000000 00000000 00000000 /proc/device-tree/cpus/PowerPC,POWER8@10/ibm,associativity 00000005 00000000 00000000 00000000 00000001 00000010 /proc/device-tree/cpus/PowerPC,POWER8@18/ibm,associativity 00000005 00000000 00000000 00000000 00000001 00000018 /proc/device-tree/cpus/PowerPC,POWER8@8/ibm,associativity 00000005 00000000 00000000 00000000 00000000 00000008 # lsprop /proc/device-tree/rtas/ibm,associativity-reference-points /proc/device-tree/rtas/ibm,associativity-reference-points 00000004 00000004 Expected numa distances: node distances: node 0 1 = 0: 10 20 1: 20 10 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1821771/+subscriptions