Bug 251292

Summary: [XEN-HVM]HVM PV driver is not in RHEL5.1
Product: Red Hat Enterprise Linux 5 Reporter: Zhao Yunfeng <yunfeng.zhao>
Component: xenAssignee: Xen Maintainance List <xen-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: low    
Version: 5.1CC: kraxel, yongkang.you
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: 2009-01-21 13:24:50 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:
Bug Depends On: 241338, 247982, 247986    
Bug Blocks:    

Description Zhao Yunfeng 2007-08-08 07:31:57 UTC
Description of problem:
The performance of qemu ide and nic is bad.
HVM PV driver has a good performance.
But I cannot find  HVM PV driver in RHEL5.1.



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. 
2. 
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Zhao Yunfeng 2007-08-08 07:39:20 UTC
*** Bug 251294 has been marked as a duplicate of this bug. ***

Comment 2 Zhao Yunfeng 2007-08-08 07:40:31 UTC
*** Bug 251293 has been marked as a duplicate of this bug. ***

Comment 3 Gerd Hoffmann 2007-08-09 13:07:16 UTC
Depends on bug 247982 and bug 241338, both targeted for rhel‑5.2.0 according to
flags, which makes this a 5.2 candidate too.

Comment 4 Zhao Yunfeng 2007-08-21 12:54:58 UTC
To fix bug 247982 and bug 241338, only very few changes needed.
I tried to use PV driver(VBD) to boot root file system of a linux os 
successfully with following steps:
1. Build VBD modules into the initrd of the guest kernel.
2. Disable IDE of the HVM guest by adding "ide0=noprobe" in the guest kernel.
3. Modify xen python code to enable a disk image could be defined twice in the 
same config file,as
disk = 
[ 'file:/share/xvs/var/img.vmx17001,hda,w', 'file:/share/xvs/var/img.vmx17001,x
vda,w' ] 
4. then boot the guest.


Comment 5 Gerd Hoffmann 2007-08-21 17:11:27 UTC
Re comment #4:

Have the same disk twice in the system, once emulated and once paravirtualized,
isn't an option.

Beside that it doesn't cover bug 241338.


Comment 6 Zhao Yunfeng 2007-08-22 01:22:11 UTC
(In reply to comment #5)
> Re comment #4:
> 
> Have the same disk twice in the system, once emulated and once paravirtualized,
> isn't an option.
After booted up, the HVM guest will only use VBD driver.
IDE emulation is only a transition to load kernel, just like ide bios driver to
get disk work before os kernel booted up.

We prefer this solution because it only needs a very small change.

Does bug 241338 have any relations with PV driver?

> 



Comment 7 Gerd Hoffmann 2007-08-22 07:52:26 UTC
Re comment #6:

It is very error prone.  If the system is booted without ide0=noprobe for some
reason (and it can happen easily as this has to be configured manually) you have
the disk twice in the guest.  I want make sure this can't happen.

Bug 241338 is related because you need some way to disable the statically
compiled ide drivers if you want pv drivers handle the boot disk.

Comment 8 Zhao Yunfeng 2007-08-23 03:33:17 UTC
We can let initrd of HVM guest disable ide. So user needn't do this manually.




Comment 9 Gerd Hoffmann 2007-08-23 07:28:42 UTC
Re #8:  Suggestions how to do this?  Note that RHEL-5 has the ide drivers
compiled statically into the kernel.

Side note:  In Fedora 7 and newer (ide handled by modular libata) it is easy,
but that doesn't help for RHEL-5 ...

Comment 10 RHEL Program Management 2007-10-16 03:50:10 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 11 Chris Lalancette 2008-02-27 03:19:57 UTC
Now that we have released the kmod-xenpv packages with the PV-on-HVM drivers,
can we close this bug out?

Thanks,
Chris Lalancette

Comment 12 RHEL Program Management 2008-03-11 19:43:24 UTC
This request was previously evaluated by Red Hat Product Management
for inclusion in the current Red Hat Enterprise Linux release, but
Red Hat was unable to resolve it in time.  This request will be
reviewed for a future Red Hat Enterprise Linux release.

Comment 13 Bill Burns 2009-01-21 13:24:50 UTC
Closing. No response to the need info request and the PV drivers are now part of the RHEl 5 distribution with RHEL 5.3.