Bug 589059

Summary: Xen pvops kernel storage backend stats location changed
Product: [Community] Virtualization Tools Reporter: Adi Kriegisch <adi>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: crobinso, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 00:09:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix block_stats for xen/pvops kernel none

Description Adi Kriegisch 2010-05-05 09:29:42 UTC
Created attachment 411526 [details]
fix block_stats for xen/pvops kernel

As stated in http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1454 "/sys/devices/xen-backend/" changed to "/sys/bus/xen-backend/".
Therefor libvirt (virsh, virt-manager, ...) are unable to report storage backend performance numbers. This seems to be true for all new Xen pv-ops kernels (2.6.3X)
The attached patch tries to fix this by appending that path to "read_bd_stat" in "src/xen/block_stats.c".

Comment 1 Cole Robinson 2016-03-21 00:09:29 UTC
Sorry this patch was never reviewed...  a similar patch was eventually applied upstream:

commit 8a70113a9949fd482151f2962dd760364525a996
Author: Guido Günther <agx>
Date:   Fri Sep 10 15:57:35 2010 +0200

    Fix block statistics with newer versions of Xen