Skip to contentSkip to conversation

RFC: This project needs a stable branch

Qemu-devel Julian Seward 7 participants 15 messages Mar 15, 2007 – Mar 23, 2007

lore
Share & tools
lore
#0 lore raw

I am a great fan of QEMU, and have used it more or less continuously for the past 2+ years. Over that time I've installed and operated various Linux and Windows guests with varying degrees of success.

The recently released 0.9.0 seems a big step forward in the stability/usability department, which is excellent. But there are still residual worries -- for example, qcow2 images corrupted for no obvious reason -- which, whilst a boring problem, is important for folks like me who want to run VMs 24x7 with the hope of complete reliability.

Pretty much all mature projects which have achieved widespread usage have one or more stable branches along with the main development branch (trunk). Think GCC, the kernel, KDE, ... the list is endless.

Maintaining a stable branch is extra hassle and overhead, but it is the standard way to operate, for reasons which are obvious: the majority of users care more about stability, reliability and usability than they do about the latest new features, and delivering stability from a branch used for bleeding-edge development work is pretty much impossible. That is not, of course, a criticism of the bleeding edge developers, since it is they who ultimately drive the project along.

I am writing to propose that a stable branch be made from the 0.9.0 release point. The aim would be to maximise stability for (IMO) the subset of functionality that has the largest potential user base:
i386-softmmu + Accelerator and x86_64-softmmu + Accelerator, but excluding -kernel-kqemu due to limitations described in
http://qemu.org/kqemu-doc.html#SEC7.

Subsequent releases of the branch would contain no functionality enhancements, but just bug fixes, with the eventual aim of achieving 'it just works' status for any x86/x86_64 guest I try to install/run. I know that's a tall order, and that 0.9.0 may not be able to supply that for all guests. But it is an important goal to strive for.

My impression is that (at least as I perceive it) the lack of emphasis on maximising stability on a stable branch, and the lack of a bug tracker, is artificially restricting QEMU's user base, and therefore indirectly its long term prospects. This is a shame, because QEMU is a very remarkable and useful project, which should be used (and usable) by everybody and anybody.

J

#1 lore raw

I'm not necessarily sure I agree that a stable branch is the best thing to have (verses aiming for never introducing regressions).

I do agree that a bug tracker would be terribly useful for tracking regressions. Bug trackers quickly get out of hand though unless someone spends a lot of time keeping them tidy.

Any thoughts on the subject?

Regards,

Anthony Liguori

Quoted 52 lines · Julian Seward

I am a great fan of QEMU, and have used it more or less continuously for the past 2+ years. Over that time I've installed and operated various Linux and Windows guests with varying degrees of success.

The recently released 0.9.0 seems a big step forward in the stability/usability department, which is excellent. But there are still residual worries -- for example, qcow2 images corrupted for no obvious reason -- which, whilst a boring problem, is important for folks like me who want to run VMs 24x7 with the hope of complete reliability.

Pretty much all mature projects which have achieved widespread usage have one or more stable branches along with the main development branch (trunk). Think GCC, the kernel, KDE, ... the list is endless.

Maintaining a stable branch is extra hassle and overhead, but it is the standard way to operate, for reasons which are obvious: the majority of users care more about stability, reliability and usability than they do about the latest new features, and delivering stability from a branch used for bleeding-edge development work is pretty much impossible. That is not, of course, a criticism of the bleeding edge developers, since it is they who ultimately drive the project along.

I am writing to propose that a stable branch be made from the 0.9.0 release point. The aim would be to maximise stability for (IMO) the subset of functionality that has the largest potential user base:
i386-softmmu + Accelerator and x86_64-softmmu + Accelerator, but excluding -kernel-kqemu due to limitations described in
http://qemu.org/kqemu-doc.html#SEC7.

Subsequent releases of the branch would contain no functionality enhancements, but just bug fixes, with the eventual aim of achieving 'it just works' status for any x86/x86_64 guest I try to install/run. I know that's a tall order, and that 0.9.0 may not be able to supply that for all guests. But it is an important goal to strive for.

My impression is that (at least as I perceive it) the lack of emphasis on maximising stability on a stable branch, and the lack of a bug tracker, is artificially restricting QEMU's user base, and therefore indirectly its long term prospects. This is a shame, because QEMU is a very remarkable and useful project, which should be used (and usable) by everybody and anybody.

J

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#2 lore raw
Quoted 2 lines · Anthony Liguori

I'm not necessarily sure I agree that a stable branch is the best thing to have (verses aiming for never introducing regressions).

Aiming for no regressions is a worthy aim, but I believe unachieveable in a project of any size. For sure it's impossible if there is ever a need to make large-scale infrastructural changes, which inevitably is occasionally the case if the project is to live a long time.

For example, if the dyngen/gcc-based backend is replaced by a self-contained handwritten one, I would be amazed if there were not a few obscure regressions whilst the new backend is brought up to the same level of stability as the current one. At least, that is what I know from my own code generator hacking.

J

#3 lore raw
In reply to Julian Seward
Quoted 5 lines

Subsequent releases of the branch would contain no functionality enhancements, but just bug fixes, with the eventual aim of achieving 'it just works' status for any x86/x86_64 guest I try to install/run. I know that's a tall order, and that 0.9.0 may not be able to supply that for all guests. But it is an important goal to strive for.

While I agree stability is a desirable goal, and there is obviously users want a stable product, I'm not sure a qemu is mature enough to make a stable branch worthwhile. Especially considering the very limited technical resources we have available.

Quoted 6 lines

I am writing to propose that a stable branch be made from the 0.9.0 release point.  The aim would be to maximise stability for (IMO) the subset of functionality that has the largest potential user base:
i386-softmmu + Accelerator and x86_64-softmmu + Accelerator, but excluding -kernel-kqemu due to limitations described in
http://qemu.org/kqemu-doc.html#SEC7.

Whereas I think the single easiest way to increase the user base would be to merge the kvm patches. Definitely not something suitable for a stable branch.

Quoted 6 lines

My impression is that (at least as I perceive it) the lack of emphasis on maximising stability on a stable branch, and the lack of a bug tracker, is artificially restricting QEMU's user base, and therefore indirectly its long term prospects. This is a shame, because QEMU is a very remarkable and useful project, which should be used (and usable) by everybody and anybody.

A bug tracker doesn't help unless you've got someone who triages, monitors and eventually fixes those bugs. There is a bug tracker on savannah, but noone has the time or motivation to use it.

Are you volunteering to maintain this stable branch, and look after the bug tracker?

Paul

#4 lore raw
Quoted 3 lines · Paul Brook

Whereas I think the single easiest way to increase the user base would be to merge the kvm patches.

This is good to hear. I should really have submitted patches to qemu-devel long ago, but have run out of cycles. In addition, I am a little concerned about the kvm userspace interface being in flux and causing breakage to users. I guess it's not too bad on the development branch.

Another concern that's occurring to me is that we are now adding additional functionality such as ballooning and paravirtualized networking, which are not traditional emulator functionality. What are your views regarding that?

Signature · 1 line
error compiling committee.c: too many arguments to function
#5 lore raw
In reply to Paul Brook
Quoted 10 lines · Paul Brook
Quoted 5 lines

Subsequent releases of the branch would contain no functionality enhancements, but just bug fixes, with the eventual aim of achieving 'it just works' status for any x86/x86_64 guest I try to install/run. I know that's a tall order, and that 0.9.0 may not be able to supply that for all guests. But it is an important goal to strive for.

While I agree stability is a desirable goal, and there is obviously users want a stable product, I'm not sure a qemu is mature enough to make a stable branch worthwhile. Especially considering the very limited technical resources we have available.

Limited effort is always a problem, granted.

So here's a broader question, which I'm surprised nobody has asked before (afaik). Think forward to a hypothetical QEMU 1.0 release. What criteria are required for such a release?

J

#6 lore raw
Quoted 5 lines · Julian Seward

Limited effort is always a problem, granted.

So here's a broader question, which I'm surprised nobody has asked before (afaik). Think forward to a hypothetical QEMU 1.0 release. What criteria are required for such a release?

*cough* *cough* QOPS *cough* *cough*

Rob

Signature · 1 line
Vista: Windows Millenium Second Edition
#7 lore raw

Hi,

Quoted 8 lines · Rob Landley
Quoted 5 lines · Julian Seward

Limited effort is always a problem, granted.

So here's a broader question, which I'm surprised nobody has asked before (afaik). Think forward to a hypothetical QEMU 1.0 release. What criteria are required for such a release?

*cough* *cough* QOPS *cough* *cough*

*cough* *cough* patches? *cough* *cough*

Ciao,
Dscho

#8 lore raw
Quoted 7 lines · Johannes Schindelin

Hi,

Quoted 3 lines · Rob Landley
Quoted 2 lines · Julian Seward

Limited effort is always a problem, granted.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

So here's a broader question, which I'm surprised nobody has asked before (afaik). Think forward to a hypothetical QEMU 1.0 release. What criteria are required for such a release?

*cough* *cough* QOPS *cough* *cough*

*cough* *cough* patches? *cough* *cough*

Do you mean you're asking me to break up Paul Brook's QOPS tree at
https://nowt.dyndns.org and submit it to mainline? I can do this thing, if you really think it would help. Seems a bit roundabout to submit Paul Brook's work to Paul Brook, though, when he has CVS commit access and I don't.

Rob

Signature · 1 line
Vista: Windows Millenium Second Edition
#9 lore raw
Quoted 3 lines

Do you mean you're asking me to break up Paul Brook's QOPS tree at
https://nowt.dyndns.org and submit it to mainline? I can do this thing, if you really think it would help.

If you implement all the missing bits in the process it'll help ;-)

Paul

#10 lore raw
Quoted 5 lines · Paul Brook
Quoted 3 lines

Do you mean you're asking me to break up Paul Brook's QOPS tree at
https://nowt.dyndns.org and submit it to mainline? I can do this thing, if you really think it would help.

If you implement all the missing bits in the process it'll help ;-)

What bits would they be then?

FWIW, I snarfed the patch last Sunday and tested it on amd64 host / x86 guest, and successfully booted a couple of linux distros. So it's not obviously broken, at least for my mundane host/guest choice. It also seemed marginally slower on a big compile in the guest - 395.4 host cpu seconds for mainline vs 422.9 with qops. Is this expected?

J

#11 lore raw
Quoted 8 lines · Julian Seward
Quoted 5 lines · Paul Brook
Quoted 3 lines

Do you mean you're asking me to break up Paul Brook's QOPS tree at
https://nowt.dyndns.org and submit it to mainline? I can do this thing, if you really think it would help.

If you implement all the missing bits in the process it'll help ;-)

What bits would they be then?

The m68k target is the only one that uses qops for all its code generation. Arm is about half-and-half, x86 has the easy bits converted, and the other targets still use dyngen pretty much exclusively.

amd64 host support is fairly good, x86 hosts mostly work, and ppc has bitrotted a bit.

Quoted 6 lines

FWIW, I snarfed the patch last Sunday and tested it on amd64 host / x86 guest, and successfully booted a couple of linux distros. So it's not obviously broken, at least for my mundane host/guest choice. It also seemed marginally slower on a big compile in the guest - 395.4 host cpu seconds for mainline vs 422.9 with qops. Is this expected?

Yes. The generated code should run at similar speed, but doing the translation takes a bit longer. I've been seeing 10-20% slowdown for booting linux.

Paul

#12 lore raw
In reply to Julian Seward

Hi,

Quoted 8 lines · Julian Seward
Quoted 5 lines · Paul Brook
Quoted 3 lines

Do you mean you're asking me to break up Paul Brook's QOPS tree at
https://nowt.dyndns.org and submit it to mainline? I can do this thing, if you really think it would help.

If you implement all the missing bits in the process it'll help ;-)

What bits would they be then?

AFAICT almost _all_ ops for the i86 target are missing.

Quoted 5 lines

FWIW, I snarfed the patch last Sunday and tested it on amd64 host / x86 guest, and successfully booted a couple of linux distros. So it's not obviously broken, at least for my mundane host/guest choice. It also seemed marginally slower on a big compile in the guest - 395.4 host cpu seconds for mainline vs 422.9 with qops.

I saw something similar (qops performing worse than non-qops), which I could only explain by the non-optimizing nature of not relying on GCC's optimizer.

Ciao,
Dscho

#13 lore raw
In reply to Rob Landley
Quoted 14 lines · Rob Landley
Quoted 13 lines · Johannes Schindelin

Hi,

Quoted 8 lines · Rob Landley
Quoted 5 lines · Julian Seward

Limited effort is always a problem, granted.

So here's a broader question, which I'm surprised nobody has asked before (afaik). Think forward to a hypothetical QEMU 1.0 release. What criteria are required for such a release?

*cough* *cough* QOPS *cough* *cough*

Quoted 7 lines
Quoted 1 line

*cough* *cough* patches? *cough* *cough*

Do you mean you're asking me to break up Paul Brook's QOPS tree at
https://nowt.dyndns.org and submit it to mainline? I can do this thing, if you really think it would help. Seems a bit roundabout to submit Paul Brook's work to Paul Brook, though, when he has CVS commit access and I don't.

The patches need some updates AFAIK, and you might have more time than Paul has.

Thiemo

#14 lore raw
Quoted 2 lines · Thiemo Seufer
Quoted 2 lines

Do you mean you're asking me to break up Paul Brook's QOPS tree at
https://nowt.dyndns.org and submit it to mainline? I can do this thing,

if

Quoted 6 lines
Quoted 3 lines

you really think it would help. Seems a bit roundabout to submit Paul Brook's work to Paul Brook, though, when he has CVS commit access and I don't.

The patches need some updates AFAIK, and you might have more time than Paul has.

Time yes, expertise no. But I'm downloading the most recent version of the patch as we speak. Brace yourself for some really for stupid questions...

(But not before this weekend at the earliest.)

Quoted 1 line

Thiemo

Rob

Signature · 1 line
Vista: Windows Millenium Second Edition