Re: [libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-16 Thread Chris Lalancette
Garry Dolley wrote:
 Hi Jim,
 
 Thanks for this suggestion, it worked like a charm!
 
 Now, while this is still a hacky way to solve this problem, would
 anyone be interested in seeing a patch that would either:
 
 1) Allow one to append arbitrary command line arguments to the
emulator, like:
 
  ...
  emulator/usr/bin/kvmemulator
  emulator_args-no-kvm-irqchip/emulator_args

It's a feature request that's come up many times.  Personally, I don't think it
would be such a bad idea, but I know it's been rejected in the past, so maybe
others can chime in with their reasoning.

  ...
 
I don't like the name emulator_args much either, but just as an
example.
 
 2) Have an option in the XML file specifically for
'-no-kvm-irqchip'; I'm not sure where it would go.  Maybe under
features, yet it isn't really a feature, more like lack of a
feature ;)

This one is probably worse off in terms of a feature request.  The problem is
that this is very qemu-specific, and the libvirt XML tries to stay pretty
generic across hypervisor versions.  Worse, qemu options come and go over time,
so a couple of years from now, that option may not even exist anymore.  But
since the XML is part of the libvirt API, we would have to continually support
it in libvirt forever.

 
 Suggestions welcome.
 
 I've been waiting to find some itch to scratch where I can
 contribute to libvirt code directly (instead of just doc patches),
 so this seems to fit the bill.
 

There is this page on the libvirt wiki: http://wiki.libvirt.org/page/Todo, but
I'll warn you that it is very out-of-date.  If you see something on there that
tickles your fancy, make sure to mail the list first asking if it's already done
or in progress.

-- 
Chris Lalancette

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-15 Thread Garry Dolley
On Sun, Sep 13, 2009 at 09:33:01PM -0400, Jim Paris wrote:
 Garry Dolley wrote:
  Dear libvirt,
  
  Is there a way to tell a KVM/QEMU guest managed by libvirt to start
  with the -no-kvm-irqchip argument?
  
  I have some FreeBSD 7 guests with timing issues, and if I try to
  start the VMs manually with -no-kvm-irqchip, the timing issues go
  away (the only known workaround right now).
  
  However, if the guest is managed by libvirt, I have found no way to
  pass this command line option.
  
  I'm running libvirt 0.6.4 on Ubuntu 9.04
 
 As a hack, you can point the XML file to a wrapper script instead of
 the KVM binary, where the script would contain e.g.:
 
   #!/bin/sh
   exec /usr/bin/kvm $@ -no-kvm-irqchip

Hi Jim,

Thanks for this suggestion, it worked like a charm!

Now, while this is still a hacky way to solve this problem, would
anyone be interested in seeing a patch that would either:

1) Allow one to append arbitrary command line arguments to the
   emulator, like:

 ...
 emulator/usr/bin/kvmemulator
 emulator_args-no-kvm-irqchip/emulator_args
 ...

   I don't like the name emulator_args much either, but just as an
   example.

2) Have an option in the XML file specifically for
   '-no-kvm-irqchip'; I'm not sure where it would go.  Maybe under
   features, yet it isn't really a feature, more like lack of a
   feature ;)

Suggestions welcome.

I've been waiting to find some itch to scratch where I can
contribute to libvirt code directly (instead of just doc patches),
so this seems to fit the bill.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-13 Thread Garry Dolley
Dear libvirt,

Is there a way to tell a KVM/QEMU guest managed by libvirt to start
with the -no-kvm-irqchip argument?

I have some FreeBSD 7 guests with timing issues, and if I try to
start the VMs manually with -no-kvm-irqchip, the timing issues go
away (the only known workaround right now).

However, if the guest is managed by libvirt, I have found no way to
pass this command line option.

I'm running libvirt 0.6.4 on Ubuntu 9.04

Thoughts?

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-13 Thread Jim Paris
Garry Dolley wrote:
 Dear libvirt,
 
 Is there a way to tell a KVM/QEMU guest managed by libvirt to start
 with the -no-kvm-irqchip argument?
 
 I have some FreeBSD 7 guests with timing issues, and if I try to
 start the VMs manually with -no-kvm-irqchip, the timing issues go
 away (the only known workaround right now).
 
 However, if the guest is managed by libvirt, I have found no way to
 pass this command line option.
 
 I'm running libvirt 0.6.4 on Ubuntu 9.04

As a hack, you can point the XML file to a wrapper script instead of
the KVM binary, where the script would contain e.g.:

  #!/bin/sh
  exec /usr/bin/kvm $@ -no-kvm-irqchip

-jim

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list