> -----Original Message----- > From: David Woodhouse <dwmw2@xxxxxxxxxxxxx> > Sent: 19 November 2022 09:47 > To: Paolo Bonzini <pbonzini@xxxxxxxxxx>; Sean Christopherson > <seanjc@xxxxxxxxxx> > Cc: kvm@xxxxxxxxxxxxxxx; mhal@xxxxxxx > Subject: [EXTERNAL] [PATCH 4/4] KVM: x86/xen: Add runstate tests for 32- > bit mode and crossing page boundary > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you can confirm the sender and know > the content is safe. > > > > From: David Woodhouse <dwmw@xxxxxxxxxxxx> > > Torture test the cases where the runstate crosses a page boundary, and and > especially the case where it's configured in 32-bit mode and doesn't, but > then switching to 64-bit mode makes it go onto the second page. > > To simplify this, make the KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_ADJUST ioctl > also update the guest runstate area. It already did so if the actual > runstate changed, as a side-effect of kvm_xen_update_runstate(). So doing > it in the plain adjustment case is making it more consistent, as well as > giving us a nice way to trigger the update without actually running the > vCPU again and changing the values. > > Signed-off-by: David Woodhouse <dwmw@xxxxxxxxxxxx> Reviewed-by: Paul Durrant <paul@xxxxxxx>