Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Avi Kivity
On 11/06/2009 02:29 AM, Anthony Liguori wrote: Helpers are really bad. On launch, I find the fragile and hard to do proper error handling with (but that's probably just me). But the real problem is at runtime, if you have a 16GB guest then you have to write-protect 4M ptes and then kvm has to

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Avi Kivity
On 11/05/2009 09:58 PM, Anthony Liguori wrote: Avi Kivity wrote: Helpers are really bad. On launch, I find the fragile and hard to do proper error handling with (but that's probably just me). But the real problem is at runtime, if you have a 16GB guest then you have to write-protect 4M ptes

Re: [Qemu-devel] How to add a new machine support in qemu?

2009-11-05 Thread Scott Tsai
On Fri, Nov 6, 2009 at 12:43 PM, Scott Tsai wrote: > Michael, > You might want to read these two threads: > "RE: [Qemu-devel] Support for new target emulator": > http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg02131.html > "[Qemu-devel] [PATCH 00/12] S/390 support" > http://lists.gnu.org/a

Re: [Qemu-devel] How to add a new machine support in qemu?

2009-11-05 Thread Scott Tsai
Michael, You might want to read these two threads: "RE: [Qemu-devel] Support for new target emulator": http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg02131.html "[Qemu-devel] [PATCH 00/12] S/390 support" http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg01857.html

[Qemu-devel] How to add a new machine support in qemu?

2009-11-05 Thread Michael Qiu
I'm going to add a new mips machine with a mips core. But I can not find a proper document for me to do so. Can anyone give a link? Or any suggestion for this? Thanks in advance.

Re: [Qemu-devel] Re: [PATCH] Add VirtIO Frame Buffer Support

2009-11-05 Thread Anthony Liguori
Jamie Lokier wrote: Avi Kivity wrote: On 11/03/2009 12:09 AM, Alexander Graf wrote: When we want to create a full VirtIO based machine, we're still missing graphics output. Fortunately, Linux provides us with most of the frameworks to render text and everything, we only need to implemen

Re: [Qemu-devel] Re: [PATCH] Add VirtIO Frame Buffer Support

2009-11-05 Thread Jamie Lokier
Avi Kivity wrote: > On 11/03/2009 12:09 AM, Alexander Graf wrote: > >When we want to create a full VirtIO based machine, we're still missing > >graphics output. Fortunately, Linux provides us with most of the frameworks > >to render text and everything, we only need to implement a transport. > > >

Re: [Qemu-devel] [PATCH 4/4] Add support for -net bridge

2009-11-05 Thread Jamie Lokier
Anthony Liguori wrote: > Avi Kivity wrote: > >>+int net_init_bridge(QemuOpts *opts, Monitor *mon, const char *name, > >>VLANState *vlan); > >>+ > >> > > > >Don't we need to tear the interface down after shutdown? > > net_init_bridge calls net_tap_fd_init which registers tap_cleanup. That > c

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Avi Kivity wrote: > I don't see why you consider placing functionality in the > management stack vs qemu user hostile, considering who our users are. Do you mean that virtually all users use a management stack? -- Jamie

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Avi Kivity wrote: > On 11/05/2009 06:50 PM, Anthony Liguori wrote: > >>I'm worrying that we're transforming one problem into two different > >>ones. Expanding the scope of qemu, and making it more difficult to > >>use advanced networking functionality. > > > > > >Do you object to the idea of hav

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Avi Kivity wrote: > On 11/05/2009 07:16 PM, Scott Tsai wrote: > >On Fri, Nov 6, 2009 at 12:50 AM, Anthony Liguori > >wrote: > > > >>It's just a bit annoying to create an entire new > >>project for a few hundred line helper. > >> > >This new project would also be a better place for 'tunctl

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Avi Kivity wrote: > On 11/05/2009 05:59 PM, Anthony Liguori wrote: > >Avi Kivity wrote: > >>On 11/05/2009 05:11 PM, Daniel P. Berrange wrote: > >>>The main problem is that we've never really used the 'session' > >>>instances, > >>>since networking configs are rather limited to pretty much just SLI

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Daniel P. Berrange wrote: > On Thu, Nov 05, 2009 at 11:03:48AM -0600, Anthony Liguori wrote: > > Daniel P. Berrange wrote: > > >Indeed the hotplug scenario is a bit of a problem in this model, > > >since libvirt needs to be able to setup iptables & ebtables rules > > >between creating the device &

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Michael S. Tsirkin wrote: > On Thu, Nov 05, 2009 at 04:12:36AM +, Jamie Lokier wrote: > > I notice that if we eventually teach the kernel to have unnamed > > bridges (just attach interfaces to each other), only the helper > > commands will need changing to use it :-) > > What do you mean by "a

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Daniel P. Berrange wrote: > On Thu, Nov 05, 2009 at 04:41:45PM +, Jamie Lokier wrote: > > Anthony Liguori wrote: > > > Absolutely. I wanted to not have a hard dependency on PolicyKit to > > > start out with but that's always been the plan. I'd like to eventually > > > add an optional Policy

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Jamie Lokier
Anthony Liguori wrote: > Avi Kivity wrote: > >Helpers are really bad. On launch, I find the fragile and hard to do > >proper error handling with (but that's probably just me). But the > >real problem is at runtime, if you have a 16GB guest then you have to > >write-protect 4M ptes and then kvm

[Qemu-devel] icount strange behavior

2009-11-05 Thread Tommy Huang
Hi, My guest system is 2 cpu smp environment and use icount=0 to measure the total instructions.I called cpu_get_icount() when the cpu switches in vl.c Sometimes the return value of cpu_get_icount() increased a lot (> 1 million) but the cpu actually is in halted state.Normally, the return value

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Anthony Liguori
Avi Kivity wrote: On 11/05/2009 07:20 PM, Arnd Bergmann wrote: On Thursday 05 November 2009, Anthony Liguori wrote: It'd still install the default helper you've provided and use it by default, of course. That's already how it behaves. You can say -net bridge,helper=/usr/local/bin/

[Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver

2009-11-05 Thread Anthony Liguori
a...@linux.vnet.ibm.com wrote: Here are the corresponding changes to the Linux virtio driver... virtio: Add memory statistics reporting to the balloon driver When using ballooning to manage overcommitted memory on a host, a system for guests to communicate their memory usage to

[Qemu-devel] Re: [RFC] virtio: Report new guest memory statistics pertinent to memory ballooning

2009-11-05 Thread Anthony Liguori
a...@linux.vnet.ibm.com wrote: [RFC] virtio: Report new guest memory statistics pertinent to memory ballooning When using ballooning to manage overcommitted memory on a host, a system for guests to communicate their memory usage to the host can provide information that will

[Qemu-devel] virtio: Add memory statistics reporting to the balloon driver

2009-11-05 Thread Adam Litke
Here are the corresponding changes to the Linux virtio driver... virtio: Add memory statistics reporting to the balloon driver When using ballooning to manage overcommitted memory on a host, a system for guests to communicate their memory usage to the host can provide information

[Qemu-devel] [RFC] virtio: Report new guest memory statistics pertinent to memory ballooning

2009-11-05 Thread Adam Litke
[RFC] virtio: Report new guest memory statistics pertinent to memory ballooning When using ballooning to manage overcommitted memory on a host, a system for guests to communicate their memory usage to the host can provide information that will minimize the impact of ballooning

[Qemu-devel] Re: [PATCH] sparc32 fix carry flag handling (Solaris bootblk fix)

2009-11-05 Thread Artyom Tarasenko
2009/11/4 Blue Swirl : > On Wed, Nov 4, 2009 at 1:58 AM, Artyom Tarasenko > wrote: >> The page 108 of the SPARC Version 8 Architecture Manual describes >> that addcc and addxcc shall compute carry flag the same way. >> The page 110 claims the same about subcc and subxcc instructions. >> This patch

Re: [Qemu-devel] SPARC user mode multithread

2009-11-05 Thread David Munday
Hi, I found the Linux/Sparc clone operations in copy_thread() from process32.c (attached) I tried modifying cpu_clone_regs with the following code per the Sparc/linux routines, but qemu still stalls on signal suspend. It seems like it should only need to set the stack pointer and the return ad

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Anthony Liguori
Avi Kivity wrote: Helpers are really bad. On launch, I find the fragile and hard to do proper error handling with (but that's probably just me). But the real problem is at runtime, if you have a 16GB guest then you have to write-protect 4M ptes and then kvm has to tear down or write protect

[Qemu-devel] preadv/pwritev data corruption on 32 bit

2009-11-05 Thread Mark McLoughlin
Hey, Just a heads up - on 32 bit hosts where qemu was using preadv and pwritev, we were seeing data corruption due to file offset being truncated: https://bugzilla.redhat.com/533063 https://bugzilla.redhat.com/526549 The glibc headers fix is posted here: http://sources.redh

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu

2009-11-05 Thread Anthony Liguori
Arnd Bergmann wrote: On Thursday 05 November 2009, Anthony Liguori wrote: How about abstracting it further and not making the helper depend on bridge code. If we put the helper into netcf, we could make that a more generic '-net netcf,helper=/usr/bin/netcf-helper' target, ... Whether