All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Shanker Donthineni" <shankerd@codeaurora.org>
To: 'Julien Grall' <julien.grall@linaro.org>,
	'xen-devel' <xen-devel@lists.xensource.com>,
	'Julien Grall' <julien.grall@arm.com>,
	'Stefano Stabellini' <sstabellini@kernel.org>
Cc: 'Philip Elcan' <pelcan@codeaurora.org>,
	'Vikram Sethi' <vikrams@codeaurora.org>
Subject: Re: [PATCH 1/1] hw/intc/arm_gicv3_its: Fix the VM termination in vm_change_state_handler()
Date: Fri, 3 Nov 2017 07:30:01 -0500	[thread overview]
Message-ID: <03ae01d3549f$7976fa10$6c64ee30$@codeaurora.org> (raw)
In-Reply-To: <b7390d34-b562-143c-32f6-9a4a6d63a7ec@linaro.org>

Thanks Julien, sorry for sending to XEN mailing list and it was my mistake.

Thanks,
Shanker

-----Original Message-----
From: Xen-devel [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Julien Grall
Sent: Friday, November 3, 2017 6:51 AM
To: Shanker Donthineni <shankerd@codeaurora.org>; xen-devel <xen-devel@lists.xensource.com>; Julien Grall <julien.grall@arm.com>; Stefano Stabellini <sstabellini@kernel.org>
Cc: Philip Elcan <pelcan@codeaurora.org>; Vikram Sethi <vikrams@codeaurora.org>
Subject: Re: [Xen-devel] [PATCH 1/1] hw/intc/arm_gicv3_its: Fix the VM termination in vm_change_state_handler()

Hi Shanker,

I think you sent this patch to the wrong ML and people. This patch seem KVM specific.

Cheers,

On 03/11/17 11:33, Shanker Donthineni wrote:
> The commit cddafd8f353d ("hw/intc/arm_gicv3_its: Implement state save
> /restore") breaks the backward compatibility with the older kernels 
> where vITS save/restore support is not available. The vmstate function
> vm_change_state_handler() should not be registered if the running 
> kernel doesn't support ITS save/restore feature. Otherwise VM instance 
> will be killed whenever vmstate callback function is invoked.
> 
> Observed a virtual machine shutdown with QEMU-2.10+linux-4.11 when 
> testing the reboot command "virsh reboot <domain> --mode acpi" instead of reboot.
> 
> KVM Error: 'KVM_SET_DEVICE_ATTR failed: Group 4 attr 0x00000000000001'
> 
> Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
> ---
>   hw/intc/arm_gicv3_its_kvm.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/intc/arm_gicv3_its_kvm.c b/hw/intc/arm_gicv3_its_kvm.c 
> index 39903d5..9b00ce5 100644
> --- a/hw/intc/arm_gicv3_its_kvm.c
> +++ b/hw/intc/arm_gicv3_its_kvm.c
> @@ -111,13 +111,13 @@ static void kvm_arm_its_realize(DeviceState *dev, Error **errp)
>               error_free(s->migration_blocker);
>               return;
>           }
> +    } else {
> +        qemu_add_vm_change_state_handler(vm_change_state_handler, s);
>       }
>   
>       kvm_msi_use_devid = true;
>       kvm_gsi_direct_mapping = false;
>       kvm_msi_via_irqfd_allowed = kvm_irqfds_enabled();
> -
> -    qemu_add_vm_change_state_handler(vm_change_state_handler, s);
>   }
>   
>   /**
> 

--
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

      reply	other threads:[~2017-11-03 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03 11:33 [PATCH 1/1] hw/intc/arm_gicv3_its: Fix the VM termination in vm_change_state_handler() Shanker Donthineni
2017-11-03 11:51 ` Julien Grall
2017-11-03 12:30   ` Shanker Donthineni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='03ae01d3549f$7976fa10$6c64ee30$@codeaurora.org' \
    --to=shankerd@codeaurora.org \
    --cc=julien.grall@arm.com \
    --cc=julien.grall@linaro.org \
    --cc=pelcan@codeaurora.org \
    --cc=sstabellini@kernel.org \
    --cc=vikrams@codeaurora.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.