Il 06/09/2012 11:44, Michael S. Tsirkin ha scritto: >> In fact, it's not clear how the driver should use the feature. My guess >> is that, if it wants to use silent deflate, it tries to negotiate >> VIRTIO_BALLOON_F_MUST_TELL_HOST, and can use silent deflate if >> negotiation fails. This is against the logic of all other features. > > Let's take a step back from the implementation details. > You are trying to add a new feature bit, after all. > Why? Why is silent deflate useful? This is what is > missing in all this discussion. If it is not useful > we do not need a bit for it. It is useful because it lets guests inflate the balloon aggressively, and then use ballooned-out pages even in places where the guest OS cannot sleep, such as kmalloc(GFP_ATOMIC). >>> Can you show a scenario with old driver/new hypervisor or >>> new driver/old hypervisor that fails? > > Sorry this is not the example I asked for. Please give and example > without migration. > > Migration is qemu's problem: it is hypervisor's job to > make sure guest sees no change during migration. Quoting my message: "Of course you can just teach QEMU to be smarter, but that would be a one-off hack for the only ill-defined feature that says something is _not_ supported". Currently migration works the same way for all virtio devices, and assumes that features are defined only in the "positive" direction: drivers request features if they want to use it, devices provide features to say they support something. Instead, in the case of this feature, the driver requests it before relying on its lack (which is odd); the device provides if they do not support something (which is wrong). You can see that this just cannot provide backwards-compatibility in the device; it happens to work only because the feature was there in the first version of the spec. > It should be able to do this with any hardware it emulates, > there should be no need to change hardware to make it > "migrateable" somehow. Of course, but if we can fix the hardware with no bad effects, let's do that instead. Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html