On Tue, Jun 30, 2009 at 11:59:18PM -0400, Beth Kon wrote:
> @@ -89,8 +95,12 @@ static int kvm_pit_load(QEMUFile *f, void *opaque, int
> version_id)
> c->count_load_time = sc->count_load_time;
> }
>
> -kvm_set_pit(kvm_context, &pit);
> -
> +if(qemu_kvm_has_pit_state2()) {
> +
The big change here is handling of enabling/disabling of hpet legacy mode. When
hpet enters
legacy mode, the spec says that the pit stops generating interrupts. In
practice, we want to
stop the pit periodic timer from running because it is wasteful in a virtual
environment.
We also have to worr