Dong, Eddie wrote:
> Fix bug for wrong vcpu->apic due to irq_summary set in user irqchip
> which makes union member vcpu->apic non NULL.
>
> Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]>
>
> diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
> index 470b7a1..03c1433 100644
> --- a/drivers/kvm/kvm_main.c
> +++ b/drivers/kvm/kvm_main.c
> @@ -1068,7 +1068,7 @@ static struct kvm_io_device
> *vcpu_find_pervcpu_dev(struct
> {
> struct kvm_io_device *dev;
>
> - if (vcpu->apic) {
> + if (irqchip_in_kernel(vcpu->kvm) && vcpu->apic) {
> dev = &vcpu->apic->dev;
> if (dev->in_range(dev, addr))
> return dev;
>
Applied. Please don't forget to send an attachment, I had to apply this
by hand.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel