On Fri, Feb 20, 2009 at 3:39 PM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
> On Fri, Feb 20, 2009 at 2:58 PM, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
>> Andrew Lyon wrote:
>>>
>>> Awesome, the kernel booted and ahci is working normally, and piix
>>> isnt actually used on this system as all the devices are sata.
>>>
>>
>> Good to hear.
>>
>>> xend failed to start saying it was not a privileged domain, first
>>> thing I am going to try there is upgrading to Xen 3.3.1 final as I am
>>> still running rc4 on my test box, but what is the minimum Xen version
>>> to use pv_ops dom0?
>>>
>>
>> Did you forget to mount /proc/xen?
>
> Yes, I mounted it and now I can start xend.
>
>>
>>> root (hd0,0)
>>> Filesystem type is ext2fs, partition type 0x83
>>> kernel /xen.gz com1=115200,8n1 console=com1,vga mem=3G dom0_mem=512M
>>> [Multiboot-elf, <0x100000:0xfc6a8:0x98958>, shtab=0x295078,
>>> entry=0x100000]
>>> module /vmlinux.bin.gz-2.6.29-rc5-tip root=/dev/sda2 console=hvc0
>>> earlyprink=xe
>>> n pci=nomsi panic=5
>>>
>>
>> With current versions of Xen you can just use your bzImage for the kernel -
>> no need for vmlinuz-XXX.gz as well.
>
> noted.
>
>>
>> J
>>
>
> I think I could not connect to hvm domain using vnc because of a bug
> Yuji Shimada has already found:
>
> "If we assign the device that doesn't have Power Management Capability
> Structure to guest domain, qemu accesses NULL pointer."
>
> I am getting the same error
> "xs_read(/local/domain/0/device-model/2/xen_extended_power_mgmt): read
> error"
>
> Yuji said "I'll submit the patch to fix the bug ASAP", I will try
> again once his patch is submitted.
>
> Andy
>
I have checked the ioemu-remote source that is downloaded when
building xen unstable, it seems to be missing this patch:
<snip>
This patch fixes the segmentation fault on assigning device without
Power Management Capability Structure.
Please apply this patch after applying the following patch I have
submitted.
[PATCH] ioemu: Cleanup the code of PCI passthrough.
Thanks,
--
Yuji Shimada.
Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
diff --git a/hw/pass-through.c b/hw/pass-through.c
index 855f69c..305ea59 100644
--- a/hw/pass-through.c
+++ b/hw/pass-through.c
@@ -1165,7 +1165,7 @@ static void pt_pci_write_config(PCIDevice *d,
uint32_t address, uint32_t val,
}
/* check power state transition flags */
- if (pm_state->flags & PT_FLAG_TRANSITING)
+ if (pm_state != NULL && pm_state->flags & PT_FLAG_TRANSITING)
/* can't accept untill previous power state transition is completed.
* so finished previous request here.
*/
@@ -1280,7 +1280,7 @@ out:
if (!ret)
PT_LOG("Error: pci_write_block failed. return value[%d].\n", ret);
- if (pm_state->flags & PT_FLAG_TRANSITING)
+ if (pm_state != NULL && pm_state->flags & PT_FLAG_TRANSITING)
/* set QEMUTimer */
qemu_mod_timer(pm_state->pm_timer,
(qemu_get_clock(rt_clock) + pm_state->pm_delay));
@@ -1337,7 +1337,7 @@ static uint32_t pt_pci_read_config(PCIDevice *d,
uint32_t address, int len)
}
/* check power state transition flags */
- if (pm_state->flags & PT_FLAG_TRANSITING)
+ if (pm_state != NULL && pm_state->flags & PT_FLAG_TRANSITING)
/* can't accept untill previous power state transition is completed.
* so finished previous request here.
*/
<snip>
I certainly get the same symptom as the user that originally reported this bug:
[2009-02-20 19:37:53 19273] WARNING (image:482) domain xptest: device
model failure: pid 19342: malfunctioning (closed sentinel), killed;
see /var/log/xen/qemu-dm-xptest.log
cat /var/log/xen/qemu-dm-xptest.log
domid: 3
qemu: the number of cpus is 2
Watching /local/domain/0/device-model/3/logdirty/next-active
Watching /local/domain/0/device-model/3/command
qemu_map_cache_init nr_buckets = 10000 size 3145728
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 46f22c82-8a3d-47e3-b9c5-3b5f6eaf7a12
Time offset set 0
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error
medium change watch on `hdc' (index: 1):
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
cirrus vga map change while on lfb mode
But the only strange thing is that I am not trying to assign a pci
device to the domain.
I tried manually applying the patch but it didnt seem to work, I had
the same issue when I tried to use James's gplpv device hiding patch,
what is the correct technique for applying patches to ioemu-remote ?
the source doesn't exist until the build process is started, is it
possible to manually pull the source and then tell the build process
not to download it?
Thanks
Andy
Andy
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|