Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Peter Lieven
> Am 29.10.2013 um 17:00 schrieb Paolo Bonzini : > > Il 29/10/2013 16:55, BALATON Zoltan ha scritto: >>> On Tue, 29 Oct 2013, Laszlo Ersek wrote: >>> I don't know what I'm talking about. But: >> >> Neither do I but... >> >>> - Windows' ACPI parser is super cranky. You could pass in a custom (bu

Re: [Qemu-devel] fix clearing i8259 IRQ lines (Was: Should the i8259 devices remain no-user?)

2013-10-29 Thread BALATON Zoltan
On Sat, 26 Oct 2013, Matthew Ogilvie wrote: Although the 8259 (interrupts) model is clearly wrong with respect to clearing an IRQ request line, only one ancient unimportant guest (Microport UNIX ca. 1987) seems to care, and there are potentially significant risks to more important guests if we tr

Re: [Qemu-devel] [PATCH v2 07/10] piix3 piix4: Clean up use of cannot_instantiate_with_device_add_yet

2013-10-29 Thread Eric Blake
On 10/29/2013 10:08 AM, arm...@redhat.com wrote: > From: Markus Armbruster > > A PIIX3/PIIX4 southbridge has multiple functions. We model each > function as a separate qdev. Two of them need some special wiring set > up in pc_init1() or mips_malta_init() to work: the ISA bridge at 01.0, > and t

Re: [Qemu-devel] [PATCH] arm_gic: Keep track of GICD_CPENDR and GICD_SPENDR

2013-10-29 Thread Bhushan Bharat-R65777
Hi Christoffer, Not related to the patch, for edge type of interrupt, will setting bit in ICD_SPENDR generate interrupt? Thanks -Bharat > -Original Message- > From: Christoffer Dall [mailto:christoffer.d...@linaro.org] > Sent: Wednesday, October 23, 2013 8:57 PM > To: peter.mayd...@lina

[Qemu-devel] [PATCH v2 07/10] piix3 piix4: Clean up use of cannot_instantiate_with_device_add_yet

2013-10-29 Thread armbru
From: Markus Armbruster A PIIX3/PIIX4 southbridge has multiple functions. We model each function as a separate qdev. Two of them need some special wiring set up in pc_init1() or mips_malta_init() to work: the ISA bridge at 01.0, and the SMBus controller at 01.3. The IDE controller at 01.1 (pii

[Qemu-devel] [PATCH v2 05/10] pci-host: Consistently set cannot_instantiate_with_device_add_yet

2013-10-29 Thread armbru
From: Markus Armbruster Many PCI host bridges consist of a sysbus device and a PCI device. You need both for the thing to work. Arguably, these bridges should be modelled as a single, composite devices instead of pairs of seemingly independent devices you can only use together, but we're not the

Re: [Qemu-devel] [PATCH 3/6] qapi: rename prefix QEVENT to Q_EVENT

2013-10-29 Thread Eric Blake
On 10/28/2013 11:22 PM, Wenchao Xia wrote: >> > MONITOR_EVENT seems tide to monitor too much, since it will be present > in qapi-schema, I think Q_EVENT_ or QMP_EVENT_KIND would be better? I don't have a strong enough opinion on the bikeshed color. MONITOR_EVENT implies the event is always asso

Re: [Qemu-devel] [PATCH] linux-user: create target_structs header to place ipc_perm and shmid_ds

2013-10-29 Thread Petar Jovanovic
Ping http://patchwork.ozlabs.org/patch/281527/ From: Petar Jovanovic Sent: Tuesday, October 22, 2013 5:13 PM To: Petar Jovanovic; qemu-devel@nongnu.org Cc: aurel...@aurel32.net; riku.voi...@linaro.org; peter.mayd...@linaro.org Subject: RE: [PATCH] linux-user

[Qemu-devel] [PATCH v2 06/10] ich9: Document why cannot_instantiate_with_device_add_yet

2013-10-29 Thread armbru
From: Markus Armbruster An ICH9 southbridge contains several PCI devices, some of them with multiple functions. We model each function as a separate qdev. Two of them need some special wiring set up in pc_q35_init() to work: the LPC controller at 00:1f.0, and the SMBus controller at 00:1f.3. S

[Qemu-devel] [PATCH v2 10/10] qdev: Do not let the user try to device_add when it cannot work

2013-10-29 Thread armbru
From: Markus Armbruster Such devices have always been unavailable and omitted from the list of available devices shown by device_add help. Until commit 18b6dad silently broke the former, setting up nasty traps for unwary users, like this one: $ qemu-system-x86_64 -nodefaults -monitor stdio

[Qemu-devel] [PATCH v2 03/10] cpu: Document why cannot_instantiate_with_device_add_yet

2013-10-29 Thread armbru
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Peter Maydell --- qom/cpu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qom/cpu.c b/qom/cpu.c index 09c15e6..6e0d54e 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -254,7 +254,11 @@ static void cpu_cl

[Qemu-devel] [PATCH v2 04/10] apic: Document why cannot_instantiate_with_device_add_yet

2013-10-29 Thread armbru
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Peter Maydell --- hw/intc/apic_common.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index ea420c7..aaef054 100644 --- a/hw/intc/apic_common.c +++ b/h

[Qemu-devel] [PATCH v2 00/10] Clean up and fix no_user

2013-10-29 Thread armbru
From: Markus Armbruster In an ideal world, machines can be built by wiring devices together with configuration, not code. Unfortunately, that's not the world we live in right now. We still have quite a few devices that need to be wired up by code. If you try to device_add such a device, it'll

[Qemu-devel] [PATCH v2 08/10] vt82c686: Clean up use of cannot_instantiate_with_device_add_yet

2013-10-29 Thread armbru
From: Markus Armbruster A VT82C686B southbridge has multiple functions. We model each function as a separate qdev. One of them need some special wiring set up in mips_fulong2e_init() to work: the ISA bridge at 05.0. The IDE controller at 05.1 (via-ide) has always had cannot_instantiate_with_de

[Qemu-devel] [PATCH] qemu-iotests: Fix 051 reference output

2013-10-29 Thread Kevin Wolf
Commit 684b254 forgot to update it. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/051.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/051.out b/tests/qemu-iotests/051.out index 2839e32..15deef6 100644 --- a/tests/qemu-iotests/051.out +++ b/tests/qemu

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread BALATON Zoltan
On Tue, 29 Oct 2013, Laszlo Ersek wrote: I don't know what I'm talking about. But: Neither do I but... - Windows' ACPI parser is super cranky. You could pass in a custom (but standardized) ACPI table on the command line (-acpitable) that only triggers some warnings in Linux's port of ACPICA,

Re: [Qemu-devel] pvpanic plans?

2013-10-29 Thread Markus Armbruster
Ping! Hu Tao writes: > Hi All, > > I know it's been a long time since this thread. But qemu 1.7 is > releasing, do you have any consensus on this? > > Thanks.

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Paolo Bonzini
Il 29/10/2013 16:55, BALATON Zoltan ha scritto: > On Tue, 29 Oct 2013, Laszlo Ersek wrote: >> I don't know what I'm talking about. But: > > Neither do I but... > >> - Windows' ACPI parser is super cranky. You could pass in a custom (but >> standardized) ACPI table on the command line (-acpitable)

Re: [Qemu-devel] [PATCH for 1.7] pc: disable pci-info

2013-10-29 Thread Eduardo Habkost
On Tue, Oct 29, 2013 at 03:35:07PM +0100, Igor Mammedov wrote: > The BIOS that we ship in 1.7 does not use pci info > from host and so far isn't going to use it. > Taking in account problems it caused see 9604f70fdf and > to avoid future incompatibility issues, it's safest to > disable that interfa

Re: [Qemu-devel] [PATCH 0/2 v2] pc: inform SeaBIOS where 64-bit PCI hole begins

2013-10-29 Thread Igor Mammedov
On Tue, 29 Oct 2013 17:10:47 +0200 "Michael S. Tsirkin" wrote: > On Tue, Oct 29, 2013 at 01:57:33PM +0100, Igor Mammedov wrote: > > * simplify PCI address space mapping into system address space, > > replacing code duplication in piix/q53 PCs with a helper function > > > > * add fw_cfg 'etc/pc

Re: [Qemu-devel] [PATCH] net/hub: remove can_receive handler

2013-10-29 Thread Stefan Hajnoczi
On Mon, Oct 21, 2013 at 03:44:46PM +0400, Fedorov Sergey wrote: > After our discussion about this patch I decided to keep my patch in > our branch until rebase onto a new release. Recently I have rebased > our branch onto v1.5.3 and reverted my patch. Then I face an issue > when using user-mode net

Re: [Qemu-devel] [PATCH for 1.7] pc: disable pci-info

2013-10-29 Thread Michael S. Tsirkin
On Tue, Oct 29, 2013 at 03:35:07PM +0100, Igor Mammedov wrote: > The BIOS that we ship in 1.7 does not use pci info > from host and so far isn't going to use it. > Taking in account problems it caused see 9604f70fdf and > to avoid future incompatibility issues, it's safest to > disable that interfa

Re: [Qemu-devel] [PATCH 0/2 v2] pc: inform SeaBIOS where 64-bit PCI hole begins

2013-10-29 Thread Michael S. Tsirkin
On Tue, Oct 29, 2013 at 01:57:33PM +0100, Igor Mammedov wrote: > * simplify PCI address space mapping into system address space, > replacing code duplication in piix/q53 PCs with a helper function > > * add fw_cfg 'etc/pcimem64-minimum-address' to allow QEMU reserve > additional address space

[Qemu-devel] How to prevent DomU(windows) to write to certain sector of hard drive

2013-10-29 Thread Shakil k
I am trying to prevent write from DomU for particular sector of hardisk which is passed through QEMU device. I am putting an error condition in ide.c using API ide_handle_write_error(s, -ret, BM_STATUS_ERROR) called from ide_write_dma_cb, however DomU is still going ahead and writing to those se

[Qemu-devel] [PATCH v2] usb: drop unused USBNetState.inpkt field

2013-10-29 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- hw/usb/dev-network.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c index 660d774..4c532b7 100644 --- a/hw/usb/dev-network.c +++ b/hw/usb/dev-network.c @@ -637,7 +637,6 @@ typedef struct USBNetState { unsigned

Re: [Qemu-devel] [PATCH for 1.7] pc: disable pci-info

2013-10-29 Thread Gerd Hoffmann
On Di, 2013-10-29 at 15:35 +0100, Igor Mammedov wrote: > The BIOS that we ship in 1.7 does not use pci info > from host and so far isn't going to use it. > Taking in account problems it caused see 9604f70fdf and > to avoid future incompatibility issues, it's safest to > disable that interface by de

[Qemu-devel] [PATCH for 1.7] pc: disable pci-info

2013-10-29 Thread Igor Mammedov
The BIOS that we ship in 1.7 does not use pci info from host and so far isn't going to use it. Taking in account problems it caused see 9604f70fdf and to avoid future incompatibility issues, it's safest to disable that interface by default for all machine types including 1.7 as it was never exposed

Re: [Qemu-devel] There are two distinct qdevs named TYPE_OPENPROM

2013-10-29 Thread Peter Maydell
On 29 October 2013 07:57, Markus Armbruster wrote: > sun4m.c and sun4u.c both define a qdev named TYPE_OPENPROM. As far as I > can tell, they differ only in the name of their memory region. > > If they ever get linked into the same executable, > type_register_internal() will reject the second one

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Laszlo Ersek
On 10/29/13 11:50, Peter Lieven wrote: > On 29.10.2013 11:48, Paolo Bonzini wrote: >> Il 29/10/2013 11:40, Peter Lieven ha scritto: The KVM signature should be at CPUID leaf 0x4100. >>> If I enable hyperv for all vServers the signature is at >>> KVM_CPUID_SIGNATURE_NEXT (0x4100) otherw

Re: [Qemu-devel] KVM call agenda for 2013-10-29

2013-10-29 Thread Juan Quintela
Juan Quintela wrote: > Hi > > Please, send any topic that you are interested in covering. As there are no topics, no call (lots of stuff got discussed on kvm forum) See you in two weeks.

[Qemu-devel] [PATCH V2 10/19] Add VSX ISA2.06 xrsqrte Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point reciprocal square root estimate instructions defined by V2.06 of the PowerPC ISA: xsrsqrtedp, xvrsqrtedp, xvrsqrtesp. V2: re-implemented VSX_RSQRTE macro. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 45

[Qemu-devel] [PATCH V2 19/19] Add VSX Rounding Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX Round to Floating Point Integer instructions: - xsrdpi, xsrdpic, xsrdpim, xsrdpip, xsrdpiz - xvrdpi, xvrdpic, xvrdpim, xvrdpip, xvrdpiz - xvrspi, xvrspic, xvrspim, xvrspip, xvrspiz Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 68 +++

[Qemu-devel] [PATCH V2 18/19] Add VSX ISA2.06 Integer Conversion Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX Integer Conversion instructions defined by V2.06 of the PowerPC ISA: - xscvdpsxds, xscvdpsxws, xscvdpuxds, xscvdpuxws - xvcvdpsxds, xvcvdpsxws, xvcvdpuxds, xvcvdpuxws - xvcvspsxds, xvcvspsxws, xvcvspuxds, xvcvspuxws - xscvsxddp, xscvuxddp - xvcvsxddp, xscvsxwdp,

[Qemu-devel] [PATCH V2 16/19] Add VSX Vector Compare Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point compare vector instructions: - xvcmpeqdp[.], xvcmpgedp[.], xvcmpgtdp[.] - xvcmpeqsp[.], xvcmpgesp[.], xvcmpgtsp[.] Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 57 +++ target-ppc/helper.h |

Re: [Qemu-devel] [PULL v2][RESEND] char: fix segfault on chardev detach

2013-10-29 Thread Amit Shah
On (Fri) 04 Oct 2013 [21:18:02], Amit Shah wrote: > Hi Anthony, > > Please pull to receive a fix for a segfault in the char layer. The > patches have been on the list for a week, and Gerd has reviewed them. > > (I'm overloading the virtio-serial git tree for this series, haven't > gotten around

[Qemu-devel] [PATCH V2 15/19] Add VSX xmax/xmin Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point maximum and minimum instructions: - xsmaxdp, xvmaxdp, xvmaxsp - xsmindp, xvmindp, xvminsp Because of the Power ISA definitions of maximum and minimum on various boundary cases, the standard softfloat comparison routines (e.g. float64_lt) do not work as

[Qemu-devel] [PATCH V2 17/19] Add VSX Floating Point to Floating Point Conversion Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX instructions that convert between floating point formats: xscvdpsp, xscvspdp, xvcvdpsp, xvcvspdp. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 46 ++ target-ppc/helper.h |4 target-ppc/translate.c |

[Qemu-devel] [PATCH V2 14/19] Add VSX xscmp*dp Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX scalar floating point compare ordered and unordered instructions. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 39 +++ target-ppc/helper.h |2 ++ target-ppc/translate.c |4 3 files changed, 45 insertions(+

[Qemu-devel] [PATCH V2 13/19] Add VSX ISA2.06 Multiply Add Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point multiply/add instructions defined by V2.06 of the PowerPC ISA: - xsmaddadp, xvmaddadp, xvmaddasp - xsmaddmdp, xvmaddmdp, xvmaddmsp - xsmsubadp, xvmsubadp, xvmsubasp - xsmsubmdp, xvmsubmdp, xvmsubmsp - xsnmaddadp, xvnmaddadp, xvnmaddasp -

[Qemu-devel] [PATCH V2 11/19] Add VSX ISA2.06 xtdiv Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point test for software divide instructions defined by V2.06 of the PowerPC ISA: xstdivdp, xvtdivdp, and xvtdivsp. V2: added ppc_float*_get_unbiased_exp() routines (pulled back from softfloat). Eliminated dependency on float*_is_denormalized() routines. Signed-o

[Qemu-devel] About QEMU for MIPS

2013-10-29 Thread Nancy
Hi, 1. When QEMU for MIPS support watchpoint debug facility? Any hint or guide to implement that function? 2. qemu-system-mipsel -M malta -kernel vmlinux-2.6.26-1-4kc-malta -hda debian_lenny_mipsel_small.qcow2 -append "root=/dev/hda1 console=ttyS0 kgdboc=ttyS0,115200 kgdbwait" -nographic -serial

[Qemu-devel] [PATCH V2 12/19] Add VSX ISA2.06 xtsqrt Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point test for software square root instructions defined by V2.06 of the PowerPC ISA: xstsqrtdp, xvtsqrtdp, xvtsqrtsp. V2: (a) using locally implemented ppc_float*_get_unbiased_exp routines (b) eliminated dependency on float*_is_denormal(). Signed-off-by: Tom Mu

[Qemu-devel] [PATCH V2 09/19] Add VSX ISA2.06 xsqrt Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point square root instructions defined by V2.06 of the PowerPC ISA: xssqrtdp, xvsqrtdp, xvsqrtsp. V2: re-implemented the VSX_SQRT macro. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 44 target-ppc/helper.

[Qemu-devel] [PATCH V2 08/19] Add VSX ISA2.06 xre Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point reciprocal estimate instructions defined by V2.06 of the PowerPC ISA: xsredp, xvredp, xvresp. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 35 +++ target-ppc/helper.h |3 +++ target-ppc/translate.c |

[Qemu-devel] [PATCH V2 06/19] Add VSX ISA2.06 xmul Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point multiply instructions defined by V2.06 of the PowerPC ISA: xsmuldp, xvmuldp, xvmulsp. V2: re-implemented VSX_MUL macro. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 46 ++ target-ppc/helper.h |

[Qemu-devel] [PATCH V2 07/19] Add VSX ISA2.06 xdiv Instructions

2013-10-29 Thread Tom Musta
This patch adds the VSX floating point divide instructions defined by V2.06 of the PowerPC ISA: xsdivdp, xvdivdp, xvdivsp. V2: re-implemented the VSX_DIV macro. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 49 +++ target-ppc/helper.h

[Qemu-devel] [PATCH V2 04/19] General Support for VSX Helpers

2013-10-29 Thread Tom Musta
This patch adds general support that will be used by the VSX helper routines: - a union describing the various VSR subfields. - access routines to get and set VSRs - VSX decoders - a general routine to generate a handler that invokes a VSX helper. Signed-off-by: Tom Musta --- targe

[Qemu-devel] [PATCH V2 05/19] Add VSX ISA2.06 xadd/xsub Instructions

2013-10-29 Thread Tom Musta
This patch adds the floating point addition and subtraction instructions defined by V2.06 of the PowerPC ISA: xssubdp, xvsubdp and xvsubsp. V2: re-implemented helper macro and combined add and substract. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 51 ++

[Qemu-devel] [PATCH V2 03/19] Add set_fprf Argument to fload_invalid_op_excp()

2013-10-29 Thread Tom Musta
The fload_invalid_op_excp() function sets assorted invalid operation status bits. However, it also implicitly modifies the FPRF field of the PowerPC FPSCR. Many VSX instructions set invalid operation bits but do not alter FPRF. Thus the function is more generally useful if the setting of the FP

[Qemu-devel] [PATCH V2 02/19] Add float32_to_uint64()

2013-10-29 Thread Tom Musta
This patch adds the float32_to_uint64() routine, which converts a 32-bit floating point number to an unsigned 64 bit number. This contribution can be licensed under either the softfloat-2a or -2b license. V2: Reduced patch to just this single routine per feedback from Peter Maydell. Signed-off-

[Qemu-devel] [PATCH V2 01/19] Fix float64_to_uint64

2013-10-29 Thread Tom Musta
The comment preceding the float64_to_uint64 routine suggests that the implementation is broken. And this is, indeed, the case. This patch properly implements the conversion of a 64-bit floating point number to an unsigned, 64 bit integer. This contribution can be licensed under either the softf

[Qemu-devel] [PATCH V2 00/19] PowerPC VSX Stage 3

2013-10-29 Thread Tom Musta
From 89de52ee03f68cef1f3343d3275162427ec22ded Mon Sep 17 00:00:00 2001 From: Tom Musta Date: Tue, 29 Oct 2013 07:52:19 -0500 Subject: To: qemu-...@nongnu.org This is the third series of patches to add PowerPC VSX emulation support to QEMU. This series adds the floating point arithmetic, compare

[Qemu-devel] [PATCH 1/2] pc: map PCI address space as catchall region for not mapped addresses

2013-10-29 Thread Igor Mammedov
From: Michael S. Tsirkin With a help of negative memory region priority PCI address space is mapped underneath RAM regions effectively catching every access to addresses not mapped by any other region. It simplifies PCI address space mapping into system address space. Signed-off-by: Michael S. T

[Qemu-devel] [PATCH 2/2] pc: add 'etc/pcimem64-minimum-address' fw_cfg interface to SeaBIOS

2013-10-29 Thread Igor Mammedov
'etc/pcimem64-minimum-address' will allow QEMU to tell BIOS where PCI memory address space mapping could start in high memory. Allowing BIOS to start mapping 64-bit PCI BARs at address where it wouldn't conflict with other mappings QEMU might place before it. That permits QEMU to reserve extra ad

[Qemu-devel] [PATCH 0/2 v2] pc: inform SeaBIOS where 64-bit PCI hole begins

2013-10-29 Thread Igor Mammedov
* simplify PCI address space mapping into system address space, replacing code duplication in piix/q53 PCs with a helper function * add fw_cfg 'etc/pcimem64-minimum-address' to allow QEMU reserve additional address space before 64-bit PCI hole. Which will be need for reserving memory hotplug

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Gleb Natapov
On Tue, Oct 29, 2013 at 02:17:10PM +0200, Michael S. Tsirkin wrote: > On Tue, Oct 29, 2013 at 01:26:59PM +0200, Gleb Natapov wrote: > > On Tue, Oct 29, 2013 at 01:13:24PM +0200, Michael S. Tsirkin wrote: > > > On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: > > > > Hi all, > > > > >

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Michael S. Tsirkin
On Tue, Oct 29, 2013 at 01:26:59PM +0200, Gleb Natapov wrote: > On Tue, Oct 29, 2013 at 01:13:24PM +0200, Michael S. Tsirkin wrote: > > On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: > > > Hi all, > > > > > > this question might seem a bit weird, but does anyone see a good way to >

Re: [Qemu-devel] [PATCH] block: Avoid unecessary drv->bdrv_getlength() calls

2013-10-29 Thread Kevin Wolf
Am 29.10.2013 um 13:02 hat Paolo Bonzini geschrieben: > Il 29/10/2013 12:35, Kevin Wolf ha scritto: > > The block layer generally keeps the size of an image cached in > > bs->total_sectors so that it doesn't have to perform expensive > > operations to get the size whenever it needs it. > > > > Thi

Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Vadim Rozenfeld
On Tue, 2013-10-29 at 10:40 +0100, Peter Lieven wrote: > On 29.10.2013 10:03, Vadim Rozenfeld wrote: > > > > - Original Message - > > From: "Peter Lieven" > > To: "Gleb Natapov" , "Vadim Rozenfeld" > > , qemu-devel@nongnu.org > > Sent: Monday, October 28, 2013 6:50:31 PM > > Subject: [Qem

Re: [Qemu-devel] [PATCH] block: Avoid unecessary drv->bdrv_getlength() calls

2013-10-29 Thread Paolo Bonzini
Il 29/10/2013 12:35, Kevin Wolf ha scritto: > The block layer generally keeps the size of an image cached in > bs->total_sectors so that it doesn't have to perform expensive > operations to get the size whenever it needs it. > > This doesn't work however when using a backend that can change its si

Re: [Qemu-devel] [PATCH] Fix COR by disabling BDRV_O_COPY_ON_READ before opening the backing_file.

2013-10-29 Thread Kevin Wolf
Am 26.10.2013 um 15:31 hat Max Reitz geschrieben: > Am 25.10.2013 02:15, schrieb Thibaut LAURENT: > > Since commit 0ebd24e0a203cf2852c310b59fbe050190dc6c8c, > > bdrv_open_common will throw an error when trying to open a file > > read-only with the BDRV_O_COPY_ON_READ flag set. > > Although BDRV_O_R

Re: [Qemu-devel] [PATCH repost] ahci: fix win7 hang on boot

2013-10-29 Thread Kevin Wolf
Am 28.10.2013 um 20:01 hat Michael S. Tsirkin geschrieben: > From: Alexander Graf > > When AHCI executes an asynchronous IDE command, it checked DRDY without > checking either DRQ or BSY. This sometimes caused interrupt to be sent > before command is actually completed. > > This resulted in a r

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Daniel P. Berrange
On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: > Hi all, > > this question might seem a bit weird, but does anyone see a good way to avoid > that Windows is able to boot inside qemu? > > We have defined several profiles for different operation systems and I want > to avoid that som

Re: [Qemu-devel] [PATCH 0/4] pc: inform SeaBIOS where 64-bit PCI hole start and PCI mappings cleanup

2013-10-29 Thread Michael S. Tsirkin
On Tue, Oct 29, 2013 at 11:08:56AM +0100, Igor Mammedov wrote: > On Wed, 16 Oct 2013 12:20:45 +0300 > "Michael S. Tsirkin" wrote: > > > On Wed, Oct 16, 2013 at 10:49:10AM +0200, Igor Mammedov wrote: > > > * simplify PCI address space mapping into system address space, > > > replacing code dupli

[Qemu-devel] [PATCH] block: Avoid unecessary drv->bdrv_getlength() calls

2013-10-29 Thread Kevin Wolf
The block layer generally keeps the size of an image cached in bs->total_sectors so that it doesn't have to perform expensive operations to get the size whenever it needs it. This doesn't work however when using a backend that can change its size without qemu being aware of it, i.e. passthrough of

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Gleb Natapov
On Tue, Oct 29, 2013 at 12:31:18PM +0100, Peter Lieven wrote: > On 29.10.2013 12:26, Gleb Natapov wrote: > >On Tue, Oct 29, 2013 at 01:13:24PM +0200, Michael S. Tsirkin wrote: > >>On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: > >>>Hi all, > >>> > >>>this question might seem a bit we

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Peter Lieven
On 29.10.2013 12:26, Gleb Natapov wrote: On Tue, Oct 29, 2013 at 01:13:24PM +0200, Michael S. Tsirkin wrote: On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: Hi all, this question might seem a bit weird, but does anyone see a good way to avoid that Windows is able to boot inside q

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Gleb Natapov
On Tue, Oct 29, 2013 at 01:13:24PM +0200, Michael S. Tsirkin wrote: > On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: > > Hi all, > > > > this question might seem a bit weird, but does anyone see a good way to > > avoid > > that Windows is able to boot inside qemu? > > > > We have

Re: [Qemu-devel] [PATCH 0/4] pc: inform SeaBIOS where 64-bit PCI hole start and PCI mappings cleanup

2013-10-29 Thread Igor Mammedov
On Tue, 29 Oct 2013 12:22:09 +0200 "Michael S. Tsirkin" wrote: > On Tue, Oct 29, 2013 at 11:08:56AM +0100, Igor Mammedov wrote: > > On Wed, 16 Oct 2013 12:20:45 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Wed, Oct 16, 2013 at 10:49:10AM +0200, Igor Mammedov wrote: > > > > * simplify PCI

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Michael S. Tsirkin
On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: > Hi all, > > this question might seem a bit weird, but does anyone see a good way to avoid > that Windows is able to boot inside qemu? > > We have defined several profiles for different operation systems and I want > to avoid that som

Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Gleb Natapov
On Mon, Oct 28, 2013 at 08:50:31AM +0100, Peter Lieven wrote: > Hi, > > do you know if it is possible to obtain the client machine id of a Windows > vServer via > a Hyper-V hypercall? I would need an information to check vServer activations > against > our KMS. > Have not idea, sorry. --

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Peter Lieven
On 29.10.2013 11:48, Paolo Bonzini wrote: Il 29/10/2013 11:40, Peter Lieven ha scritto: The KVM signature should be at CPUID leaf 0x4100. If I enable hyperv for all vServers the signature is at KVM_CPUID_SIGNATURE_NEXT (0x4100) otherwise at KVM_CPUID_SIGNATURE (0x0). KVM_CPU_ID_SIGNATU

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Paolo Bonzini
Il 29/10/2013 11:40, Peter Lieven ha scritto: >>> >> The KVM signature should be at CPUID leaf 0x4100. > If I enable hyperv for all vServers the signature is at > KVM_CPUID_SIGNATURE_NEXT (0x4100) otherwise > at KVM_CPUID_SIGNATURE (0x0). KVM_CPU_ID_SIGNATURE is 0x4000. > Does this ma

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Peter Lieven
On 29.10.2013 11:19, Paolo Bonzini wrote: Il 29/10/2013 11:11, Peter Lieven ha scritto: On 29.10.2013 10:59, Paolo Bonzini wrote: Il 29/10/2013 10:48, Peter Lieven ha scritto: Hi all, this question might seem a bit weird, but does anyone see a good way to avoid that Windows is able to boot in

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Gleb Natapov
On Tue, Oct 29, 2013 at 11:19:54AM +0100, Paolo Bonzini wrote: > Il 29/10/2013 11:11, Peter Lieven ha scritto: > > On 29.10.2013 10:59, Paolo Bonzini wrote: > >> Il 29/10/2013 10:48, Peter Lieven ha scritto: > >>> Hi all, > >>> > >>> this question might seem a bit weird, but does anyone see a good

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Paolo Bonzini
Il 29/10/2013 11:11, Peter Lieven ha scritto: > On 29.10.2013 10:59, Paolo Bonzini wrote: >> Il 29/10/2013 10:48, Peter Lieven ha scritto: >>> Hi all, >>> >>> this question might seem a bit weird, but does anyone see a good way to >>> avoid >>> that Windows is able to boot inside qemu? >>> >>> We h

Re: [Qemu-devel] [PATCH 0/4] pc: inform SeaBIOS where 64-bit PCI hole start and PCI mappings cleanup

2013-10-29 Thread Michael S. Tsirkin
On Tue, Oct 29, 2013 at 11:08:56AM +0100, Igor Mammedov wrote: > On Wed, 16 Oct 2013 12:20:45 +0300 > "Michael S. Tsirkin" wrote: > > > On Wed, Oct 16, 2013 at 10:49:10AM +0200, Igor Mammedov wrote: > > > * simplify PCI address space mapping into system address space, > > > replacing code dupli

[Qemu-devel] [PATCH v3] net: Adding netmap network backend

2013-10-29 Thread Vincenzo Maffione
This patch adds support for a network backend based on netmap. netmap is a framework for high speed packet I/O. You can use it to build extremely fast traffic generators, monitors, software switches or network middleboxes. Its companion software switch VALE lets you interconnect virtual machines. n

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Peter Lieven
On 29.10.2013 10:59, Paolo Bonzini wrote: Il 29/10/2013 10:48, Peter Lieven ha scritto: Hi all, this question might seem a bit weird, but does anyone see a good way to avoid that Windows is able to boot inside qemu? We have defined several profiles for different operation systems and I want to

Re: [Qemu-devel] [PATCH 0/4] pc: inform SeaBIOS where 64-bit PCI hole start and PCI mappings cleanup

2013-10-29 Thread Igor Mammedov
On Wed, 16 Oct 2013 12:20:45 +0300 "Michael S. Tsirkin" wrote: > On Wed, Oct 16, 2013 at 10:49:10AM +0200, Igor Mammedov wrote: > > * simplify PCI address space mapping into system address space, > > replacing code duplication in piix/q53 PCs with helper function > > I think this does not go f

Re: [Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Paolo Bonzini
Il 29/10/2013 10:48, Peter Lieven ha scritto: > Hi all, > > this question might seem a bit weird, but does anyone see a good way to > avoid > that Windows is able to boot inside qemu? > > We have defined several profiles for different operation systems and I want > to avoid that someone chooses L

[Qemu-devel] Prohibit Windows from running in QEMU

2013-10-29 Thread Peter Lieven
Hi all, this question might seem a bit weird, but does anyone see a good way to avoid that Windows is able to boot inside qemu? We have defined several profiles for different operation systems and I want to avoid that someone chooses Linux and then installs Windows within a VM. Reason is licensi

Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Peter Lieven
On 29.10.2013 10:03, Vadim Rozenfeld wrote: - Original Message - From: "Peter Lieven" To: "Gleb Natapov" , "Vadim Rozenfeld" , qemu-devel@nongnu.org Sent: Monday, October 28, 2013 6:50:31 PM Subject: [Qemu-devel] kvm/hyper-v: obtaining client machine id Hi, do you know if it is possi

Re: [Qemu-devel] [PATCH v2] net: disallow to specify multicast MAC address

2013-10-29 Thread Stefan Hajnoczi
On Mon, Oct 21, 2013 at 12:08:44PM +0400, Dmitry Krivenok wrote: > Changes to v1: > 1) Resolved names clash in include/net/eth.h > 2) Reused is_multicast_ether_addr() from that header for MAC check. > > Signed-off-by: Dmitry V. Krivenok > --- > include/net/eth.h | 6 +++--- > net/net.c |

Re: [Qemu-devel] [SeaBIOS] qemu 1.7 & seabios -- release planning

2013-10-29 Thread Gerd Hoffmann
On Di, 2013-10-15 at 12:04 +0200, Gerd Hoffmann wrote: > Hi, > > It's probably going to be a bit tough this time. We are pretty late in > the qemu 1.7 devel cycle, soft freeze today, and a big chunk of code > (ahci-tables-from qemu) which needs seabios support[1] is just about to > be pulled.

Re: [Qemu-devel] [WIP PATCH 00/24] IDE cleanups, initial work on AHCI rerror/werror=stop

2013-10-29 Thread Paolo Bonzini
Il 28/10/2013 19:42, Michael S. Tsirkin ha scritto: > > > Hmm. Actually maybe there was an io error... is there > > > an easy way to find out? > > > > This would be a *host* I/O error, so I doubt. > > Yes, I know. Something like an out of range access on a disk > can trigger it perhaps? Yes, tha

Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Vadim Rozenfeld
- Original Message - From: "Peter Lieven" To: "Gleb Natapov" , "Vadim Rozenfeld" , qemu-devel@nongnu.org Sent: Monday, October 28, 2013 6:50:31 PM Subject: [Qemu-devel] kvm/hyper-v: obtaining client machine id Hi, do you know if it is possible to obtain the client machine id of a Wind

[Qemu-devel] [Bug 1245724] Re: libfdt.a git compilation fail

2013-10-29 Thread thh
Which version of make are you using? Recently, a bug with make 4.0 has been discovered, please see this thread for a description and a work- around: http://www.mail-archive.com/qemu-devel@nongnu.org/msg198719.html -- You received this bug notification because you are a member of qemu- devel-ml,

[Qemu-devel] [PATCH v2 0/2] sheepdog: add user-defined redundancy option

2013-10-29 Thread Liu Yuan
v2: - fix a typo in comment and commit log This patch set add one sheepdog specific option for qemu-img to control redundancy. This patch set is on top of Kevin's block tree. Liu Yuan (2): sheepdog: refactor do_sd_create() sheepdog: support user-defined redundancy option block/sheepdog

[Qemu-devel] [PATCH v2 2/2] sheepdog: support user-defined redundancy option

2013-10-29 Thread Liu Yuan
Sheepdog support two kinds of redundancy, full replication and erasure coding. # create a fully replicated vdi with x copies -o redundancy=x (1 <= x <= SD_MAX_COPIES) # create a erasure coded vdi with x data strips and y parity strips -o redundancy=x:y (x must be one of {2,4,8,16} and 1 <= y <

[Qemu-devel] [PATCH v2 1/2] sheepdog: refactor do_sd_create()

2013-10-29 Thread Liu Yuan
We can actually use BDRVSheepdogState *s to pass most of the parameters. Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c | 37 +++-- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/block/sheepdog.c b/block/sheepd

Re: [Qemu-devel] [PATCH v2 0/2] sheepdog: add user-defined redundancy option

2013-10-29 Thread Liu Yuan
On Tue, Oct 29, 2013 at 04:23:33PM +0800, Liu Yuan wrote: > v2: > - fix a typo in comment and commit log > > This patch set add one sheepdog specific option for qemu-img to control > redundancy. > > This patch set is on top of Kevin's block tree. Oops, please ignore this patch set because I fo

[Qemu-devel] [PATCH v2 1/2] sheepdog: pass copy_policy in the request

2013-10-29 Thread Liu Yuan
Currently copy_policy isn't used. Recent sheepdog supports erasure coding, which make use of copy_policy internally, but require client explicitly passing copy_policy from base inode to newly creately inode for snapshot related operations. If connected sheep daemon doesn't utilize copy_policy, pas

[Qemu-devel] [PATCH v2 0/2] sheepdog: add user-defined redundancy option

2013-10-29 Thread Liu Yuan
v2: - fix a typo in comment and commit log This patch set add one sheepdog specific option for qemu-img to control redundancy. This patch set is on top of Kevin's block tree. Liu Yuan (2): sheepdog: pass copy_policy in the request sheepdog: refactor do_sd_create() block/sheepdog.c | 45

[Qemu-devel] [PATCH v2 2/2] sheepdog: refactor do_sd_create()

2013-10-29 Thread Liu Yuan
We can actually use BDRVSheepdogState *s to pass most of the parameters. Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c | 37 +++-- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/block/sheepdog.c b/block/sheepd

[Qemu-devel] [PATCH] sheepdog: support user-defined redundancy option

2013-10-29 Thread Liu Yuan
Sheepdog support two kinds od redundancy, full replication and erasure coding. # create a fully replicated vdi with x copies -o redundancy=x (1 <= x <= SD_MAX_COPIES) # create a erasure coded vdi with x data strips and y parity strips -o redundancy=x:y (x must be one of {2,4,8,16} and 1 <= y <

[Qemu-devel] [PATCH 1/2] sheepdog: refactor do_sd_create()

2013-10-29 Thread Liu Yuan
We can actually use BDRVSheepdogState *s to pass most of the parameters. Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c | 37 +++-- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/block/sheepdog.c b/block/sheepd

[Qemu-devel] [PATCH 0/2] sheepdog: add user-defined redundancy option

2013-10-29 Thread Liu Yuan
This patch set add one sheepdog specific option for qemu-img to control redundancy. This patch set is on top of Kevin's block tree. Liu Yuan (2): sheepdog: refactor do_sd_create() sheepdog: support user-defined redundancy option block/sheepdog.c | 110 +

Re: [Qemu-devel] [PATCH] cpu-exec: Fix compiler warning (-Werror=clobbered)

2013-10-29 Thread Jan Kiszka
On 2013-10-28 20:18, Stefan Weil wrote: > Am 18.09.2013 09:48, schrieb Jan Kiszka: >> On 2013-09-18 09:26, Peter Maydell wrote: > [...] >>> And gcc's documentation of the 'noreturn' attribute specifically >>> says it does not affect the exceptional path where the function >>> returns via longjmp. >

Re: [Qemu-devel] [PATCH V9 00/11] Quorum block driver

2013-10-29 Thread Benoît Canet
Le Friday 04 Oct 2013 à 16:31:56 (+0200), Max Reitz a écrit : > On 2013-10-02 14:39, Benoît Canet wrote: > >It must be applied on top of "block: Add > >BlockDriver.bdrv_check_ext_snapshot." > > > >This patchset create a block driver implementing a quorum using total qemu > >disk > >images. Writes

<    1   2   3   >