search for: bool_t

Displaying 20 results from an estimated 111 matches for "bool_t".

Did you mean: pool_t
2012 Oct 18
3
[PATCH 1/1] keep iommu disabled until iommu_setup is called
...line.de --- xen/drivers/passthrough/iommu.c.org 2012-10-05 03:38:33.000000000 +0000 +++ xen/drivers/passthrough/iommu.c 2012-10-17 22:58:07.000000000 +0000 @@ -38,7 +38,7 @@ * no-intremap Disable VT-d Interrupt Remapping */ custom_param("iommu", parse_iommu_param); -bool_t __read_mostly iommu_enabled = 1; +bool_t __read_mostly iommu_enabled = 0; bool_t __read_mostly force_iommu; bool_t __initdata iommu_dom0_strict; bool_t __read_mostly iommu_verbose; @@ -51,6 +51,8 @@ bool_t __read_mostly amd_iommu_debug; bool_t __read_mostly amd_iommu_perdev_intremap; +bool_t...
2012 Oct 24
5
[PATCH v3] IOMMU: keep disabled until iommu_setup() is called
...= 0; return -ENODEV; } --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -41,7 +41,8 @@ static void iommu_dump_p2m_table(unsigne * no-intremap Disable VT-d Interrupt Remapping */ custom_param("iommu", parse_iommu_param); -bool_t __read_mostly iommu_enabled = 1; +bool_t __initdata iommu_enable = 1; +bool_t __read_mostly iommu_enabled; bool_t __read_mostly force_iommu; bool_t __initdata iommu_dom0_strict; bool_t __read_mostly iommu_verbose; @@ -77,7 +78,7 @@ static void __init parse_iommu_param(cha *ss = '...
2011 Mar 31
0
[PATCH 7/7] x86: cleanup bogus CONFIG_ACPI_PCI uses
...ch_mpparse.h> -#define CONFIG_ACPI_PCI - #define BAD_MADT_ENTRY(entry, end) ( \ (!entry) || (unsigned long)entry + sizeof(*entry) > end || \ ((struct acpi_subtable_header *)entry)->length != sizeof(*entry)) #define PREFIX "ACPI: " -#ifdef CONFIG_ACPI_PCI bool_t __initdata acpi_noirq; /* skip ACPI IRQ initialization */ -bool_t __initdata acpi_pci_disabled; /* skip ACPI PCI scan and IRQ initialization */ -#else -bool_t __initdata acpi_noirq = 1; -bool_t __initdata acpi_pci_disabled = 1; -#endif bool_t __initdata acpi_ht = 1; /* enable HT */ bool_t __ini...
2013 Oct 30
3
[PATCH 4/4] XSA-60 security hole: flush cache when vmentry back to UC guest
...xen/include/asm-x86/hvm/hvm.h | 1 + 3 files changed, 15 insertions(+), 0 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index df021de..47eb18d 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -68,6 +68,7 @@ #include <public/mem_event.h> bool_t __read_mostly hvm_enabled; +bool_t __read_mostly hypervisor_access_uc_hvm_memory; unsigned int opt_hvm_debug_level __read_mostly; integer_param("hvm_debug", opt_hvm_debug_level); @@ -2483,6 +2484,9 @@ static enum hvm_copy_result __hvm_copy( return HVMCOPY_unhandleable; #endi...
2013 Feb 09
1
OSX rpcgen problem
.../rpc.h> enum virLXCProtocolExitStatus { VIR_LXC_PROTOCOL_EXIT_STATUS_ERROR = 0, VIR_LXC_PROTOCOL_EXIT_STATUS_SHUTDOWN = 1, VIR_LXC_PROTOCOL_EXIT_STATUS_REBOOT = 2, }; typedef enum virLXCProtocolExitStatus virLXCProtocolExitStatus; #ifdef __cplusplus extern "C" bool_t xdr_virLXCProtocolExitStatus(XDR *, virLXCProtocolExitStatus*); #elif __STDC__ extern bool_t xdr_virLXCProtocolExitStatus(XDR *, virLXCProtocolExitStatus*); #else /* Old Style C */ bool_t xdr_virLXCProtocolExitStatus(); #endif /* Old Style C */ struct virLXCProtocolExitEventMsg { enum vi...
2012 Aug 29
0
[PATCH V2] x86/i8259: Handle bogus spurious interrupts more quietly
...ally duplicating it diff -r 1126b3079bef -r 3cacac4d8a4d xen/arch/x86/i8259.c --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -85,10 +85,12 @@ BUILD_16_IRQS(0xc) BUILD_16_IRQS(0xd) BU static DEFINE_SPINLOCK(i8259A_lock); -static void _mask_and_ack_8259A_irq(unsigned int irq); +static bool_t _mask_and_ack_8259A_irq(unsigned int irq); -void (*__read_mostly bogus_8259A_irq)(unsigned int irq) = - _mask_and_ack_8259A_irq; +bool_t bogus_8259A_irq(unsigned int irq) +{ + return _mask_and_ack_8259A_irq(irq); +} static void mask_and_ack_8259A_irq(struct irq_desc *desc) { @@ -239,12...
2012 Dec 10
26
[PATCH 00/11] Add virtual EPT support Xen.
From: Zhang Xiantao <xiantao.zhang@intel.com> With virtual EPT support, L1 hyerpvisor can use EPT hardware for L2 guest''s memory virtualization. In this way, L2 guest''s performance can be improved sharply. According to our testing, some benchmarks can show > 5x performance gain. Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Zhang Xiantao (11):
2011 Mar 09
0
[PATCH 04/11] x86: cleanup mpparse.c
...t;xen/sched.h> -#include <asm/mc146818rtc.h> #include <asm/bitops.h> #include <asm/smp.h> #include <asm/acpi.h> @@ -34,36 +33,31 @@ #include <bios_ebda.h> /* Have we found an MP table */ -int smp_found_config; -unsigned int __devinitdata maxcpus = NR_CPUS; +bool_t __initdata smp_found_config; /* * Various Linux-internal data structures created from the * MP-table. */ -int apic_version [MAX_APICS]; -int mp_bus_id_to_type [MAX_MP_BUSSES]; -int mp_bus_id_to_node [MAX_MP_BUSSES]; -int mp_bus_id_to_local [MAX_MP_BUSSES]; -int mp_bus_id_to_pci_bus [MAX_MP...
2013 Jul 03
1
bcmxcp: Patch for using command map if present to control commands added by dstate_addcmd
...ebcd 100644 --- a/drivers/bcmxcp.c +++ b/drivers/bcmxcp.c @@ -150,7 +150,7 @@ static long int get_long(const unsigned char*); static float get_float(const unsigned char *data); static void init_meter_map(void); static void init_alarm_map(void); -static void init_command_map(int size); +static bool_t init_command_map(int size); static void init_config(void); static void init_limit(void); static void init_ups_meter_map(const unsigned char *map, unsigned char len); @@ -625,7 +625,7 @@ void init_alarm_map() } /* Get information on UPS commands */ -void init_command_map(int size) +bool_...
2013 Nov 19
6
[PATCH 2/5] X86 architecture instruction set extension definiation
...-) diff --git a/xen/arch/x86/xstate.c b/xen/arch/x86/xstate.c index 9e74929..1fd43c9 100644 --- a/xen/arch/x86/xstate.c +++ b/xen/arch/x86/xstate.c @@ -253,7 +253,7 @@ void xstate_free_save_area(struct vcpu *v) /* Collect the information of processor''s extended state */ void xstate_init(bool_t bsp) { - u32 eax, ebx, ecx, edx, min_size; + u32 eax, ebx, ecx, edx; u64 feature_mask; if ( boot_cpu_data.cpuid_level < XSTATE_CPUID ) @@ -269,12 +269,6 @@ void xstate_init(bool_t bsp) BUG_ON((eax & XSTATE_YMM) && !(eax & XSTATE_SSE)); feature_mask =...
2013 May 02
5
[PATCH] x86: allow Dom0 read-only access to IO-APICs
There are BIOSes that want to map the IO-APIC MMIO region from some ACPI method(s), and there is at least one BIOS flavor that wants to use this mapping to clear an RTE''s mask bit. While we can''t allow the latter, we can permit reads and simply drop write attempts, leveraging the already existing infrastructure introduced for dealing with AMD IOMMUs'' representation as
2013 Sep 23
11
[PATCH v4 0/4] x86/HVM: miscellaneous improvements
The first and third patches are cleaned up versions of an earlier v3 submission by Yang. 1: Nested VMX: check VMX capability before read VMX related MSRs 2: VMX: clean up capability checks 3: Nested VMX: fix IA32_VMX_CR4_FIXED1 msr emulation 4: x86: make hvm_cpuid() tolerate NULL pointers Signed-off-by: Jan Beulich <jbeulich@suse.com>
2014 Dec 19
2
usbhid-ups on OmniOS (Solaris 10 derivate)
..., but this was very rare occasion (status was always OL). > System reboot helped to get recent values. > > I?ve tried apcupsd and it worked flawlessly. > Then I wnt back to nut and I?ve noticed that interrupt processing is was > disabled in NUT: > > #if 1 //ndef SUN_LIBUSB > bool_t use_interrupt_pipe = TRUE; > #else > bool_t use_interrupt_pipe = FALSE; > #endif > > A hack to a hack to enable it? fixed it. Now it works as it should. > > It seems that SUN (well, Oracle) has fixed/updated their implementation? > and requires IRQ to be processed. > >...
2013 Sep 26
8
[PATCH v5 0/7] Dissociate logical and gic/hardware CPU ID
Hi, This is the fifth version of this patch series. With the Versatile Express TC2, it''s possible to boot only with A7 or A15. If the user choose to boot with only A7, the CPU ID will start at 0x100. As Xen relies on it to set the logical ID and the GIC, it won''t be possible to use Xen with this use case. This patch series is divided in 3 parts: - Patch 1: prepare Xen
2011 Nov 30
0
[PATCH 3/4] x86/emulator: properly handle lzcnt and tzcnt
...e the presences of the F3 prefix must be handled in the emulation code in order to avoid running into problems on newer CPUs. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -1058,6 +1058,9 @@ static bool_t vcpu_has( return rc == X86EMUL_OKAY; } +#define vcpu_has_lzcnt() vcpu_has(0x80000001, ECX, 5, ctxt, ops) +#define vcpu_has_bmi1() vcpu_has(0x00000007, EBX, 3, ctxt, ops) + #define vcpu_must_have(leaf, reg, bit) \ generate_exception_if(!vcpu_has(leaf, reg, bit, ctxt, ops), EXC_UD, -...
2015 Feb 12
0
[PATCH 3/3] lib: Add third, zero parameter to xdrproc_t
...libvirt commit rationale after Daniel: commit 9fa3a8ab6fd82ad2f5a14b490696085061418718 Author: Doug Goldstein <cardoe@cardoe.com> Date: Wed Oct 30 11:22:58 2013 -0500 MacOS: Handle changes to xdrproc_t definition With Mac OS X 10.9, xdrproc_t is no longer defined as: typedef bool_t (*xdrproc_t)(XDR *, ...); but instead as: typedef bool_t (*xdrproc_t)(XDR *, void *, unsigned int); For reference, Linux systems typically define it as: typedef bool_t (*xdrproc_t)(XDR *, void *, ...); The rationale explained in the header is that using a vararg is incorrect...
2015 Feb 12
8
[PATCH 1/3] macosx: Includes/defines for byteswap operations
--- src/inspect-apps.c | 13 ++++++++++++- src/inspect-fs-windows.c | 6 ++++++ src/journal.c | 5 +++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/inspect-apps.c b/src/inspect-apps.c index 20cf00a..8fbae9c 100644 --- a/src/inspect-apps.c +++ b/src/inspect-apps.c @@ -35,11 +35,22 @@ #include <sys/endian.h> #endif -/* be32toh is usually a macro
2010 Aug 05
3
[PATCH 08/14] Nested Virtualization: efer
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 _______________________________________________ Xen-devel mailing list
2014 Dec 19
0
usbhid-ups on OmniOS (Solaris 10 derivate)
...occasion (status was always OL). >> System reboot helped to get recent values. >> >> I?ve tried apcupsd and it worked flawlessly. >> Then I wnt back to nut and I?ve noticed that interrupt processing is was disabled in NUT: >> >> #if 1 //ndef SUN_LIBUSB >> bool_t use_interrupt_pipe = TRUE; >> #else >> bool_t use_interrupt_pipe = FALSE; >> #endif >> >> A hack to a hack to enable it? fixed it. Now it works as it should. >> >> It seems that SUN (well, Oracle) has fixed/updated their implementation? and requires IRQ t...
2013 Sep 12
3
[PATCH 1/1 V3] x86/AMD-Vi: Add additional check for invalid special->handle
...s = parse_pci(s + 1, &seg, &bus, &dev, &func); if ( !s || *s ) return; + hpet_sbdf.id = id; hpet_sbdf.bdf = PCI_BDF(bus, dev, func); hpet_sbdf.seg = seg; hpet_sbdf.cmdline = 1; } custom_param("ivrs_hpet[", parse_ivrs_hpet); +static bool_t is_ioapic_overidden(u16 seg, u16 bdf, u8 handle) +{ + bool_t ret = 0; + int apic = find_first_bit(ioapic_cmdline, ARRAY_SIZE(ioapic_sbdf)); + + while ( apic < ARRAY_SIZE(ioapic_sbdf) ) + { + if ( ioapic_sbdf[apic].bdf == bdf && + ioapic_sbdf[apic].seg == se...