I've also tested the patch with LibVMI and everything
works fine. The pause/unpause reference count now does take
effect, so the previous issue I reported (a paused domain
getting unpaused by mem_event_enable) is fixed by this
patch.
One question I have, what if the toolstack wants to
unconditionally (force) unpause a domain? Right now with this
patch if someone runs 'xl pause domain' a couple times he has
no other recourse then to issue 'xl unpause domain' at least
the same number of times, or to restart the entire domain.
Might be user-friendlier if there was an override provided in
case a domain got paused a million times by accident.