Public bug reported:

== Comment: #0 - SEETEENA THOUFEEK <[email protected]> - 2025-04-03 02:49:38 
==
+++ This bug was initially created as a clone of Bug #208894 +++

---Problem Description---
---Problem Description---


Libvirt needs support for P11 added

 
Machine Type = na 
 
Contact Information = [email protected] 
 
---Debugger---
A debugger is not configured
 
---uname output---
na


The following changes to Libvirt code fixing the issue and with custom build 
qemu-system-ppc64 (with patch series 
https://lore.kernel.org/all/[email protected]/ 
applied ), booting the guest :

1. /*The git diff output */
diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c
index 13f5fc9c2c..8673d4f759 100644
--- a/src/cpu/cpu_ppc64.c
+++ b/src/cpu/cpu_ppc64.c
@@ -93,22 +93,22 @@ ppc64CheckCompatibilityMode(const char *host_model,
     if (!compat_mode)
         return VIR_CPU_COMPARE_IDENTICAL;
 
-    /* Valid host CPUs: POWER6, POWER7, POWER8, POWER9, POWER10 */
+    /* Valid host CPUs: POWER6, POWER7, POWER8, POWER9, POWER10, POWER11 */
     if (!STRPREFIX(host_model, "POWER") ||
         !(tmp = (char *) host_model + strlen("POWER")) ||
         virStrToLong_i(tmp, NULL, 10, &host) < 0 ||
-        host < 6 || host > 10) {
+        host < 6 || host > 11) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        "%s",
                        _("Host CPU does not support compatibility modes"));
         return VIR_CPU_COMPARE_ERROR;
     }
 
-    /* Valid compatibility modes: power6, power7, power8, power9, power10 */
+    /* Valid compatibility modes: power6, power7, power8, power9, power10, 
power11 */
     if (!STRPREFIX(compat_mode, "power") ||
         !(tmp = (char *) compat_mode + strlen("power")) ||
         virStrToLong_i(tmp, NULL, 10, &compat) < 0 ||
-        compat < 6 || compat > 10) {
+        compat < 6 || compat > 11) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        _("Unknown compatibility mode %1$s"),
                        compat_mode);

--------------------
2. The guest console output for lscpu: 
??[root@localhost]?[~]
???? # lscpu 
Architecture:             ppc64le
  Byte Order:             Little Endian
CPU(s):                   4
  On-line CPU(s) list:    0-3
Model name:               POWER10 (architected), altivec supported
  Model:                  18.0 (pvr 0082 1200)
  Thread(s) per core:     1
  Core(s) per socket:     1
  Socket(s):              4
Virtualization features:  
  Hypervisor vendor:      KVM
  Virtualization type:    para
Caches (sum of all):      
  L1d:                    128 KiB (4 instances)
  L1i:                    128 KiB (4 instances)
NUMA:                     
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-3
Vulnerabilities:          
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Mitigation; RFI Flush, L1D private per thread
  Mds:                    Not affected
  Meltdown:               Mitigation; RFI Flush, L1D private per thread
  Mmio stale data:        Not affected
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Not affected
  Spec store bypass:      Mitigation; Kernel entry/exit barrier (eieio)
  Spectre v1:             Mitigation; __user pointer sanitization
  Spectre v2:             Mitigation; Software count cache flush (hardware accel
                          erated), Software link stack flush
  Srbds:                  Not affected
  Tsx async abort:        Not affected


1. with libvirt code changes vert-install is working for with custom build qemu.

#virt-install --name fedora40_libvirt --ram 4096 --disk
path=/home/narayana/libvirt_p11_test.qcow2,size=8 --vcpus 4 --os-type
linux --os-variant generic --network bridge=virbr0 --graphics none
--console pty,target_type=serial --cdrom /home/sarita/Fedora-Server-dvd-
ppc64le-40-1.14.iso --boot emulator=/home/amachhiw/code/qemu/build/qemu-
system-ppc64

2. The guest rebooted and lscpu results are shown below:

Fedora Linux 40 (Server Edition)                                                
                                                                                
                              
Kernel 6.8.5-301.fc40.ppc64le on an ppc64le (hvc0)                              
                                                                                
                              
                                                                                
                                                                                
                              
Web console: https://localhost:9090/ or https://192.168.122.55:9090/            
                                                                                
                              
                                                                                
                                                                                
                              
localhost login: root                                                           
                                                                                
                              
Password:                                                                       
                                                                                
                              
[root@localhost ~]# lscpu                                                       
                                                                                
                              
Architecture:             ppc64le                                               
                                                                                
                              
  Byte Order:             Little Endian                                         
                                                                                
                              
CPU(s):                   4                                                     
                                                                                
                              
  On-line CPU(s) list:    0-3                                                   
                                                                                
                              
Model name:               POWER10 (architected), altivec supported              
                                                                                
                              
  Model:                  2.0 (pvr 0082 0200)                                   
                                                                                
                              
  Thread(s) per core:     1                                                     
                                                                                
                              
  Core(s) per socket:     1                                                     
                                                                                
                              
  Socket(s):              4                                                     
                                                                                
                              
Virtualization features:                                                        
                                                                                
                              
  Hypervisor vendor:      KVM                                                   
                                                                                
                              
  Virtualization type:    para                                                  
                                                                                
                              
Caches (sum of all):                                                            
                                                                                
                              
  L1d:                    128 KiB (4 instances)                                 
                                                                                
                              
  L1i:                    192 KiB (4 instances)                                 
                                                                                
                              
NUMA:                                                                           
                                                                                
                              
  NUMA node(s):           1                                                     
                                                                                
                              
  NUMA node0 CPU(s):      0-3                                                   
                                                                                
                              
Vulnerabilities:                                                                
                                                                                
                              
  Gather data sampling:   Not affected                                          
                                                                                
                              
  Itlb multihit:          Not affected                                          
                                                                                
                              
  L1tf:                   Mitigation; RFI Flush, L1D private per thread         
                                                                                
                              
  Mds:                    Not affected                                          
                                                                                
                              
  Meltdown:               Mitigation; RFI Flush, L1D private per thread         
                                                                                
                              
  Mmio stale data:        Not affected                                          
                                                                                
                              
  Reg file data sampling: Not affected                                          
                                                                                
                              
  Retbleed:               Not affected                                          
                                                                                
                              
  Spec rstack overflow:   Not affected                                          
                                                                                
                              
  Spec store bypass:      Mitigation; Kernel entry/exit barrier (eieio)         
                                                                                
                              
  Spectre v1:             Mitigation; __user pointer sanitization               
                                                                                
                              
  Spectre v2:             Mitigation; Software count cache flush (hardware 
accel                                                                           
                                   
                          erated), Software link stack flush                    
                                                                                
                              
  Srbds:                  Not affected                                          
                                                                                
                              
  Tsx async abort:        Not affected                                          
                                                                                
                              
[root@localhost ~]#


Narayana Murty Nagarampalli 2024-10-04 01:28:02 CDT
The patch will be posted upstream soon after the testing few selftest cases for 
P11 PVR support.
[reply] [?]Comment 6

Narayana Murty Nagarampalli 2024-10-23 04:15:02 CDT
I was waiting for the P11 system to test my patch before posting it upstream. 
Let me know which system I can use.


[reply] [?]Comment 7

Narayana Murty Nagarampalli 2024-10-28 02:00:40 CDT
Thanks sarita for sharing system for P11 libvirt patch testing. The patch 
working as required but need to add qemu version capabilities to it. patch will 
be posted once the qemu p11 support patches merged.
[reply] [?]Comment 8

Narayana Murty Nagarampalli 2024-10-30 00:12:49 CDT
Currently the patch planning in two parts, one p11 cpu support and second one 
is p11 host support. the second part of patch is under testing and will post 
internal review.
[reply] [?]Comment 9

Narayana Murty Nagarampalli 2025-01-15 07:56:21 CST
The patch posted libvirt stream mailing lists, once it get merged will update 
the version details of libvirt. 
https://lists.libvirt.org/archives/list/[email protected]/thread/4A3IND2QP5CE654XE755ICRZKLUNYXAE/#KK37WIK2JTUBKJ7RXAR5HT757KBXIZ6H
 
Contact Information = [email protected] 
 
---Debugger---
A debugger is not configured
 
Machine Type = na 
 
---uname output---
na

patches posted in upstream. waiting for the approval. parallely
mirroring to distro for the awareness.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
     Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
         Status: New


** Tags: architecture-ppc64le bugnameltc-212323 severity-high 
targetmilestone-inin2510

** Tags added: architecture-ppc64le bugnameltc-212323 severity-high
targetmilestone-inin2510

** Changed in: ubuntu
     Assignee: (unassigned) => Ubuntu on IBM Power Systems Bug Triage 
(ubuntu-power-triage)

** Package changed: ubuntu => libvirt (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109469

Title:
  [P11 Support] :: Need P11 Support in Libvirt

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2109469/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to