[FEATURE] POWER9: libvirt: Updates needed for P8_compat mode guest on P9 host

Bug #1692421 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Fix Released
Critical
Canonical Server
libvirt (Ubuntu)
Fix Released
Critical
Ubuntu on IBM Power Systems Bug Triage

Bug Description

== Comment: #0 - Leonardo Augusto Guimaraes Garcia <email address hidden> - 2016-09-16 16:01:25 ==

[FEATURE] POWER9: libvirt: Updates needed for P8_compat mode guest on P9 host
anything else that includes live migration between P8-P9, etc..

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-146437 severity-critical targetmilestone-inin1710
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: ubuntu → libvirt (Ubuntu)
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
assignee: nobody → Canonical Server Team (canonical-server)
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Will we get a list of upstream commits or what is planned in that regard?

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Note: Related Qemu bug which very likely is a prereq is bug 1692451

tags: added: p9-virt-stack
Changed in libvirt (Ubuntu):
status: New → Incomplete
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2017-05-23 12:16 EDT-------
(In reply to comment #4)
> Will we get a list of upstream commits or what is planned in that regard?

Yes. As soon as we have this list Shiva will post the commit iDs here.

Manoj Iyer (manjo)
tags: added: ubuntu-17.04
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Ping - Polling for related commit ID's or libvirt versions for p9 support

Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: New → Incomplete
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
I'm working on the just released libvirt 3.5 - will the patches be in there already?
If not what is your timeline on this?

Manoj Iyer (manjo)
Changed in libvirt (Ubuntu):
importance: Undecided → Critical
Changed in ubuntu-power-systems:
importance: Undecided → Critical
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

The bug is still quite unclear on which changes are needed exactly.
But in some discussions outside this bug it was agreed that all should be in libvirt 3.5 and therefore having 3.5 in artful should solve the bug.

Now libvirt 3.5 is available in Artful now, so setting fix released.

If there is more needed please let us know in more detail and set back to new or report a new bug entirely as applicable.

Changed in libvirt (Ubuntu):
status: Incomplete → Fix Released
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: Incomplete → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-07-20 07:33 EDT-------
Hi,

libvirt - 3.5 has most of the P9 related fixes. Can you rebase to 3.6 instead which has the Multi-phb support as well?

Thanks,
Shivaprasad

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: [Bug 1692421] Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2017-07-20 07:33 EDT-------
> libvirt - 3.5 has most of the P9 related fixes. Can you rebase to 3.6
> instead which has the Multi-phb support as well?
>

For now 3.6 isn't even released so no-way.
Really I polled for input on so many times/places I'm not even sure if 3.6
is possible.

I see 210dd0c "qemu: Take all PHBs into account while calculating memlock
limits" but as I said not released yet.
Also new multip PHB suppoer doesn't sound like anything that was on the
bugs I've seen so far.

The TL;DR on all of these is, if there are things you need that are not in
3.5 please open new bugs so that we can consider and decide on them one by
one.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Since no one has opened a new bug since I asked I'll report here on the Multi-phb request.
But if there is any response or request about it please -> new bug.

It seems likely that I move to libvirt 3.6 for multiple reasons - this request is just one of them.
Lacking a bug number I can't close when uploading - if you need that for tracking open a new bug.

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla
Download full text (4.2 KiB)

------- Comment From <email address hidden> 2017-10-12 23:56 EDT-------
Tested this and working fine.

Added the following the guest xml:
<cpu mode='host-model' check='partial'>
<model fallback='forbid'>power8</model>
</cpu>

From 'ps' output qemu command shows "-cpu host,compat=power8"

/usr/bin/qemu-system-ppc64 -name guest=nrs,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-nrs/master-key.aes -machine pseries-artful,accel=kvm,usb=off,dump-guest-core=off -cpu host,compat=power8 -m size=8388608k,slots=32,maxmem=138412032k -realtime mlock=off -smp 8,sockets=8,cores=1,threads=1 -uuid 7537dd5b-dd96-4299-b433-66ab4055256e -display none -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-1-nrs/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device pci-ohci,id=usb,bus=pci.0,addr=0x2 -device spapr-vscsi,id=scsi0,reg=0x2000 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive file=/home/user/nasastry/ubuntu-17.10-ppc64le.qcow2,format=qcow2,if=none,id=drive-scsi0-0-0-0 -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:4a:4b:4c,bus=pci.0,addr=0x1 -chardev pty,id=charserial0 -device spapr-vty,chardev=charserial0,reg=0x30000000 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/domain-1-nrs/vioser-00-00-01.sock,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0 -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channel/target/domain-1-nrs/vioser-00-00-02.sock,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -msg timestamp=on

After the guest boot:
croot@ubuntu1710:~# cat /proc/cpuinfo
processor : 0
cpu : POWER8 (architected), altivec supported
clock : 2600.000000MHz
revision : 2.0 (pvr 004e 1200)

Can see Power8.

This bugzilla can be closed.

------- Comment From <email address hidden> 2017-10-12 23:57 EDT-------
root@ltc-boston122:~# dpkg -l | grep "libvirt\|qemu"
ii ipxe-qemu 1.0.0+git-20161027.b991c67+really20150424.a25a16d-1ubuntu1 all PXE boot firmware - ROM images for qemu
ii libvirt-bin 3.6.0-1ubuntu4 ppc64el programs for the libvirt library
ii libvirt-clients 3.6.0-1ubuntu4 ppc64el Programs for the libvirt library
ii libvirt-daemon 3.6.0-1ubuntu4 ppc64el Virtualization daemon
ii libvirt-daemon-system 3.6.0-1ubuntu4 ppc64el Libvirt daemon configuration files
ii libvirt0:ppc64el 3.6.0-1ubuntu4 ppc64el library for interfacing with different virtualization syste...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.