[host] reset the update count when the guest flags a restart

This commit is contained in:
Geoffrey McRae 2017-12-15 12:08:14 +11:00
parent b6c8136565
commit df13340439

View File

@ -183,6 +183,7 @@ bool Service::Process()
// check if the client has flagged a restart // check if the client has flagged a restart
if (f & KVMFR_HEADER_FLAG_RESTART) if (f & KVMFR_HEADER_FLAG_RESTART)
{ {
m_header->updateCount = 0;
INTERLOCKED_AND8((volatile char *)flags, ~(KVMFR_HEADER_FLAG_RESTART)); INTERLOCKED_AND8((volatile char *)flags, ~(KVMFR_HEADER_FLAG_RESTART));
restart = true; restart = true;
break; break;